DDNet - v0.10.1
    Preparing search index...

    Class Finish

    Represents a finish.

    Index

    Constructors

    • Construct a new Finish instance.

      Parameters

      • data: {
            mapName: string;
            players: string[];
            rank: Rank;
            region: ServerRegion;
            timeSeconds: number;
            timestamp: number;
        }

      Returns Finish

    Properties

    mapName: string

    The name of the finished map.

    players: { name: string; toPlayer: () => Promise<Player> }[]

    The finish player(s).

    rank: Rank

    The rank obtained.

    region: ServerRegion

    The region of this finish.

    timeSeconds: number

    The time of this finish in seconds.

    timestamp: number

    The timestamp of this finish.

    timeString: string

    The string formatted time of this finish.

    "03:23"
    

    Methods

    • Returns a new Map object from the mapName of this finish.

      Parameters

      • OptionalrankSource: ServerRegion | null

        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>

    • Returns the names of the players and their finish time.

      Returns string

      "Sans3108 | 03:23"