aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/types/Game.ts
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-11-04 13:47:50 +0300
committerGitHub <noreply@github.com>2024-11-04 13:47:50 +0300
commiteae19bb1b047b3568e7a9a624b50e80886e56331 (patch)
treeaa3215377fd1a7714e4c5763f9abf9d7dc7def2b /frontend/src/types/Game.ts
parentfix: remove insert trigger on users, check insert user on login err (#224) (diff)
downloadlphub-eae19bb1b047b3568e7a9a624b50e80886e56331.tar.gz
lphub-eae19bb1b047b3568e7a9a624b50e80886e56331.tar.bz2
lphub-eae19bb1b047b3568e7a9a624b50e80886e56331.zip
feat/frontend: optimizing imports, file extensions (#230)
Co-authored-by: FifthWit <fifthwitbusiness@gmail.com>
Diffstat (limited to 'frontend/src/types/Game.ts')
-rw-r--r--frontend/src/types/Game.ts37
1 files changed, 37 insertions, 0 deletions
diff --git a/frontend/src/types/Game.ts b/frontend/src/types/Game.ts
new file mode 100644
index 0000000..1a80341
--- /dev/null
+++ b/frontend/src/types/Game.ts
@@ -0,0 +1,37 @@
1import type { Map } from '@customTypes/Map';
2
3
4export interface Game {
5 id: number;
6 name: string;
7 image: string;
8 is_coop: boolean;
9 category_portals: GameCategoryPortals[];
10};
11
12export interface GameChapters {
13 game: Game;
14 chapters: Chapter[];
15};
16
17export interface GameMaps {
18 game: Game;
19 maps: Map[];
20};
21
22export interface Category {
23 id: number;
24 name: string;
25};
26
27interface Chapter {
28 id: number;
29 name: string;
30 image: string;
31 is_disabled: boolean;
32};
33
34export interface GameCategoryPortals {
35 category: Category;
36 portal_count: number;
37};