diff options
Diffstat (limited to 'frontend/src/types/Chapters.ts')
| -rw-r--r-- | frontend/src/types/Chapters.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/frontend/src/types/Chapters.ts b/frontend/src/types/Chapters.ts new file mode 100644 index 0000000..1d48306 --- /dev/null +++ b/frontend/src/types/Chapters.ts | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | import type { Game } from "@customTypes/Game"; | ||
| 2 | import type { Map } from "@customTypes/Map"; | ||
| 3 | |||
| 4 | interface Chapter { | ||
| 5 | id: number; | ||
| 6 | name: string; | ||
| 7 | image: string; | ||
| 8 | is_disabled: boolean; | ||
| 9 | } | ||
| 10 | |||
| 11 | export interface GameChapter { | ||
| 12 | chapter: Chapter; | ||
| 13 | maps: Map[]; | ||
| 14 | } | ||
| 15 | |||
| 16 | export interface GamesChapters { | ||
| 17 | game: Game; | ||
| 18 | chapters: Chapter[]; | ||
| 19 | } \ No newline at end of file | ||