diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-11-04 13:47:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-04 13:47:50 +0300 |
| commit | eae19bb1b047b3568e7a9a624b50e80886e56331 (patch) | |
| tree | aa3215377fd1a7714e4c5763f9abf9d7dc7def2b /frontend/src/types/Game.ts | |
| parent | fix: remove insert trigger on users, check insert user on login err (#224) (diff) | |
| download | lphub-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.ts | 37 |
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 @@ | |||
| 1 | import type { Map } from '@customTypes/Map'; | ||
| 2 | |||
| 3 | |||
| 4 | export interface Game { | ||
| 5 | id: number; | ||
| 6 | name: string; | ||
| 7 | image: string; | ||
| 8 | is_coop: boolean; | ||
| 9 | category_portals: GameCategoryPortals[]; | ||
| 10 | }; | ||
| 11 | |||
| 12 | export interface GameChapters { | ||
| 13 | game: Game; | ||
| 14 | chapters: Chapter[]; | ||
| 15 | }; | ||
| 16 | |||
| 17 | export interface GameMaps { | ||
| 18 | game: Game; | ||
| 19 | maps: Map[]; | ||
| 20 | }; | ||
| 21 | |||
| 22 | export interface Category { | ||
| 23 | id: number; | ||
| 24 | name: string; | ||
| 25 | }; | ||
| 26 | |||
| 27 | interface Chapter { | ||
| 28 | id: number; | ||
| 29 | name: string; | ||
| 30 | image: string; | ||
| 31 | is_disabled: boolean; | ||
| 32 | }; | ||
| 33 | |||
| 34 | export interface GameCategoryPortals { | ||
| 35 | category: Category; | ||
| 36 | portal_count: number; | ||
| 37 | }; | ||