aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/types/Game.ts
blob: be2cd73d381c0a9cc13809a0986abe74e48e9336 (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
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;
}