This commit is contained in:
yuexin 2020-12-11 17:34:40 +08:00
commit 620f3bde52

View File

@ -40,6 +40,9 @@ export class GeneralRoom extends Room {
this.battleMan.init(cs, this);
this.clock.start();
this.state.gameSate = 0;
this.beginSchedule(1, function (){
debugRoom('init main clock');
}, 'init')
this.onMessage("play_ready_c2s", (client, message) => {
msgLog('play_ready from ', client.sessionId, message);
this.dispatcher.dispatch(new PlayReadyCommand(), {client});