feat: add game system
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 37s

This commit is contained in:
uku 2024-10-28 12:37:50 +01:00
parent 524316d864
commit 14e38cb573
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
7 changed files with 175 additions and 38 deletions

View file

@ -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];
}