Class Release

Represents a map release.

Constructors

  • Construct a new Release instance.

    Parameters

    • data: {
          difficulty: number;
          height: number;
          mapper: string;
          name: string;
          points: number;
          releaseTimestamp: number;
          thumbnail: string;
          tiles: string[];
          type: string;
          web_preview: string;
          website: string;
          width: number;
      }
      • difficulty: number
      • height: number
      • mapper: string
      • name: string
      • points: number
      • releaseTimestamp: number
      • thumbnail: string
      • tiles: string[]
      • type: string
      • web_preview: string
      • website: string
      • width: number

    Returns Release

Properties

difficulty: number

Star difficulty of this map.

height: number

The height of this map.

mappers: Mapper[]

Authors of this map.

name: string

The name of this map.

points: number

Amount of points awarded for completing this map.

releasedTimestamp: null | number

Release timestamp of this map.

thumbnailUrl: string

The direct url of this map's thumbnail image.

tiles: Tile[]

Array of tiles used in this map.

type: Type

The type of this map.

url: string

The url of this map on ddnet.org

webPreviewUrl: string

The url to the interactive web preview of this map.

width: number

The width of this map.

Methods

  • Returns a new Map object from the name of this release.

    Parameters

    • OptionalrankSource: null | RankAvailableRegion

      The region to pull ranks from in the toMap function from the returned value. Omit for global ranks.

    • force: boolean = false

      Wether to bypass the cache.

    Returns Promise<Map>