mancala/backend/src/models/Game.ts

14 lines
391 B
TypeScript
Raw Normal View History

2022-08-01 21:34:42 +03:00
import { MancalaGame } from "mancala.js";
import { UserConnectionInfo } from "./UserConnectionInfo";
export interface Game {
id: string;
mancalaGame: MancalaGame;
gameUsersConnectionInfo: GameUsersConnectionInfo;
2022-09-02 00:33:31 +03:00
spectatorIds: string[];
2022-08-01 21:34:42 +03:00
}
export interface GameUsersConnectionInfo {
user1ConnectionInfo: UserConnectionInfo;
user2ConnectionInfo: UserConnectionInfo;
}