mancala/src/game/gamestore/GameStore.ts

15 lines
527 B
TypeScript
Raw Normal View History

2022-07-15 21:42:38 +03:00
import { MancalaGame } from "mancala.js";
export interface GameStore {
get(id: string): MancalaGame | undefined;
set(id: string, game: MancalaGame): void;
remove(id: string): void;
setGameIdByUser(userId: string, gameId: string): void;
getGameIdByUser(userId: string): string | undefined;
removeGameIdByPlayer(userId: string): void;
setGameByUser(userId: string, game: MancalaGame): void;
getGameByUser(userId: string): MancalaGame | undefined;
removeGameByPlayer(userId: string): void;
2022-07-15 21:42:38 +03:00
}