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