fel kesz game backend
This commit is contained in:
@@ -26,10 +26,26 @@ export enum CardType {
|
||||
CLOSER = 4
|
||||
}
|
||||
|
||||
export enum ConsequenceType {
|
||||
MOVE_FORWARD = 0,
|
||||
MOVE_BACKWARD = 1,
|
||||
LOSE_TURN = 2,
|
||||
EXTRA_TURN = 3,
|
||||
SWAP_POSITION = 4,
|
||||
GO_TO_START = 5,
|
||||
TURN_AGAIN = 6
|
||||
}
|
||||
|
||||
export interface Consequence {
|
||||
type: ConsequenceType;
|
||||
value?: number;
|
||||
}
|
||||
|
||||
export interface Card {
|
||||
text: string;
|
||||
type?: CardType;
|
||||
answer?: string | null;
|
||||
consequence?: Consequence | null;
|
||||
}
|
||||
|
||||
@Entity('Decks')
|
||||
|
||||
Reference in New Issue
Block a user