Library referenceTypes
MapInfo
type MapInfo = {
category: number;
created_at: string;
creator_name: string;
description: string;
featured: boolean;
gameplays: number;
leaderboard_order: LeaderboardOrder;
leaderboard_type: LeaderboardType | "";
map_id: number;
name: string;
playtime: number;
updated_at: string;
votes: number;
};GET /api/map/:name
Properties
| Property | Type | Description |
|---|---|---|
category | number | Map category ID |
created_at | string | "YYYY-MM-DD HH:MM:SS", not rfc3339 like the docs say |
creator_name | string | Username of the map creator |
description | string | Map description |
featured | boolean | undocumented |
gameplays | number | Number of times the map has been played |
leaderboard_order | LeaderboardOrder | Sort order for leaderboard (0 = ascending/lower is better, 1 = descending/higher is better) |
leaderboard_type | LeaderboardType | "" | "time", "score" or empty when the map has no leaderboard |
map_id | number | Unique map identifier |
name | string | Map name |
playtime | number | milliseconds |
updated_at | string | When the map was last updated |
votes | number | Total upvotes |