aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/types/Game.tsx
blob: eb435f66ba58cdcc8c2a3451b09a09e91f7a1d3c (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 { Map } from './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;
};