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;
|
2022-07-31 00:10:34 +03:00
|
|
|
|
|
|
|
|
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
|
|
|
}
|