feat: add game system
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 37s
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 37s
This commit is contained in:
parent
524316d864
commit
14e38cb573
7 changed files with 175 additions and 38 deletions
|
@ -9,13 +9,21 @@ export interface MapData {
|
|||
stops: [number, number][];
|
||||
}
|
||||
|
||||
export interface GameData {
|
||||
stopName: string;
|
||||
export interface ServerGameData {
|
||||
mode: string;
|
||||
stops: GeoJSON.Feature[];
|
||||
distances: number[];
|
||||
scores: number[];
|
||||
}
|
||||
|
||||
export interface ClientGameData {
|
||||
stopNames: string[];
|
||||
gameId: string;
|
||||
}
|
||||
|
||||
export interface CheckData {
|
||||
gameId: string;
|
||||
index: number;
|
||||
latlng: [number, number];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue