Adding models and components

This commit is contained in:
2022-09-02 14:39:24 +02:00
parent 8e3322a9f8
commit 18a02f0940
42 changed files with 492 additions and 566 deletions
+7
View File
@@ -0,0 +1,7 @@
export enum Announcement {
RE = 0,
KONTRA = 1,
NO_NINETY = 2,
NO_SIXTY = 3,
NO_THIRTY = 4
}
+9
View File
@@ -0,0 +1,9 @@
export enum Solo {
QUEENS = 0,
JACKS = 1,
COLOR_CHECKS = 2,
COLOR_HEART = 3,
COLOR_SPADES = 4,
COLOR_CROSS = 5,
FLESHLESS = 6
}
+4
View File
@@ -0,0 +1,4 @@
export enum Team {
RE = 0,
KONTRA = 1
}
+11
View File
@@ -0,0 +1,11 @@
import {Player} from './player';
import {Announcement} from './enums/announcement';
import { Solo } from './enums/solo';
export interface Game {
gameId: number;
players: Player[];
foxesCaught: number;
announcements: Announcement[];
solo?: Solo;
}
+12
View File
@@ -0,0 +1,12 @@
import {Team} from './enums/team';
export interface Player {
firebonkId: number;
uuid: string;
firstName: string;
finalCardScore: number;
gamePoints: number;
hadMarriage: boolean;
hadTrumpHandoff: boolean;
team: Team;
}
+7
View File
@@ -0,0 +1,7 @@
export interface User {
firebonkId: number;
uuid: string;
firstName: string;
token: string;
sessionKey: string;
}