aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/types/Game.ts
blob: 104d02abe8c6780531fd378d87331baed9b56de1 (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
32
33
34
35
36
37
import type { Map } from "@customTypes/Map";


export interface Game {
  id: number;
  name: string;
  image: string;
  is_coop: boolean;
  category_portals: GameCategoryPortals[];
};

export interface GameChapters {
  game: Game;
  chapters: Chapter[];
};

export interface GameMaps {
  game: Game;
  maps: Map[];
};

export interface Category {
  id: number;
  name: string;
};

interface Chapter {
  id: number;
  name: string;
  image: string;
  is_disabled: boolean;
};

export interface GameCategoryPortals {
  category: Category;
  portal_count: number;
};