@real_one_chess_king/game-logic
Version:
R.O.C.K. chess game logic
23 lines • 1.18 kB
JavaScript
export var WSClientGameEvent;
(function (WSClientGameEvent) {
WSClientGameEvent["Turn"] = "turn";
WSClientGameEvent["Surrender"] = "surrender";
WSClientGameEvent["FindGame"] = "find_game";
})(WSClientGameEvent || (WSClientGameEvent = {}));
export var WSServerGameEvent;
(function (WSServerGameEvent) {
WSServerGameEvent["TurnConfirmed"] = "turn_confirmed";
WSServerGameEvent["TurnRejected"] = "turn_rejected";
WSServerGameEvent["OpponentTurn"] = "opponent_turn";
WSServerGameEvent["SurrenderConfirmed"] = "surrender_confirmed";
WSServerGameEvent["OpponentSurrender"] = "opponent_surrender";
WSServerGameEvent["OpponentDisconnected"] = "opponent_disconnected";
WSServerGameEvent["OpponentWon"] = "opponent_won";
WSServerGameEvent["OpponentTimeOut"] = "opponent_time_out";
WSServerGameEvent["YourTimeOut"] = "your_time_out";
WSServerGameEvent["YouWon"] = "you_won";
WSServerGameEvent["GameStarted"] = "game_started";
WSServerGameEvent["WaitingForOpponent"] = "waiting_for_opponent";
WSServerGameEvent["Stalemate"] = "stalemate";
})(WSServerGameEvent || (WSServerGameEvent = {}));
//# sourceMappingURL=const.js.map