aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/types/Ranking.ts
blob: a143355dad0166e8d335c1c510153a2cd1882cb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import type { UserShort } from "@customTypes/Profile";

export interface RankingType {
    placement: number;
    user: UserShort;
    total_score: number;
}

export interface SteamRankingType {
    user_name: string;
    avatar_link: string;
    steam_id: string;
    sp_score: number;
    mp_score: number;
    overall_score: number;
    sp_rank: number;
    mp_rank: number;
    overall_rank: number;
}

export interface Ranking {
    rankings_overall: RankingType[];
    rankings_singleplayer: RankingType[];
    rankings_multiplayer: RankingType[];
}

export interface SteamRanking {
    rankings_overall: SteamRankingType[];
    rankings_singleplayer: SteamRankingType[];
    rankings_multiplayer: SteamRankingType[];
}