diff options
| author | Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> | 2024-09-05 16:48:01 +0200 |
|---|---|---|
| committer | Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> | 2024-09-05 16:48:01 +0200 |
| commit | dea41ea59c558068078c98dd1758cdba2beceda8 (patch) | |
| tree | 15bd6a8a490bdceb66fa093d2b33c862da81b821 /frontend/src/types | |
| parent | refactor: fix summary cat change logic (diff) | |
| download | lphub-dea41ea59c558068078c98dd1758cdba2beceda8.tar.gz lphub-dea41ea59c558068078c98dd1758cdba2beceda8.tar.bz2 lphub-dea41ea59c558068078c98dd1758cdba2beceda8.zip | |
refactor: maplist page
Diffstat (limited to 'frontend/src/types')
| -rw-r--r-- | frontend/src/types/Chapters.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/frontend/src/types/Chapters.tsx b/frontend/src/types/Chapters.tsx new file mode 100644 index 0000000..2c0afdd --- /dev/null +++ b/frontend/src/types/Chapters.tsx | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | import { Game } from "./Game"; | ||
| 2 | import { Map } from "./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 | ||