ddnet
Version:
A typescript npm package for interacting with data from ddnet.org
34 lines (33 loc) • 882 B
TypeScript
import { Type } from '../../util.js';
import { Leaderboard } from './Leaderboard.js';
import { CompletedMapStats, UncompletedMapStats } from './MapStats.js';
/**
* Represents player server stats.
*/
export declare class ServerStats {
/**
* The name of this server.
*/
name: Type;
/**
* Player leaderboard stats for this server.
*/
leaderboard: Leaderboard;
/**
* Total points obtainable across all maps on this server.
*/
totalCompletionistPoints: number;
/**
* Player map stats for this server.
*/
maps: (CompletedMapStats | UncompletedMapStats)[];
/**
* Construct a new {@link ServerStats} instance.
*/
constructor(data: {
name: Type;
leaderboard: Leaderboard;
totalCompletionistPoints: number;
maps: (CompletedMapStats | UncompletedMapStats)[];
});
}