begin working on the data types needed for the datastore
This commit is contained in:
parent
0968181e06
commit
5786ad2742
1 changed files with 30 additions and 0 deletions
30
server/src/types/datastore.d.ts
vendored
Normal file
30
server/src/types/datastore.d.ts
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
interface datastorePlayer {
|
||||||
|
team: team | null;
|
||||||
|
role: role | null;
|
||||||
|
host: boolean;
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
type datastoreQuestionCard = string;
|
||||||
|
type datastoreObjectCard = string[];
|
||||||
|
|
||||||
|
interface datastoreTeam {
|
||||||
|
questions: datastoreQuestionCard[];
|
||||||
|
hand: datastoreQuestionCard[];
|
||||||
|
id: team;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface datastoreDeck<T> {
|
||||||
|
discard: T[];
|
||||||
|
unknown: T[];
|
||||||
|
deck: T[];
|
||||||
|
}
|
||||||
|
|
||||||
|
interface datastore {
|
||||||
|
questions: datastoreDeck<question_deck>;
|
||||||
|
objects: datastoreDeck<object_deck>;
|
||||||
|
objectCard: datastoreObjectCard;
|
||||||
|
players: datastorePlayer[];
|
||||||
|
ingame: boolean;
|
||||||
|
object: string;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue