15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
import {Command} from "@colyseus/command";
|
|
import {CardGameState} from "../schema/CardGameState";
|
|
import {GameStateConst} from "../../constants/GameStateConst";
|
|
|
|
/**
|
|
* 游戏结束
|
|
*/
|
|
export class GameResultCommand extends Command<CardGameState, {}> {
|
|
|
|
execute() {
|
|
this.state.gameState = GameStateConst.STATE_GAME_OVER;
|
|
}
|
|
|
|
}
|