房间创建时, 初始化mainClock
This commit is contained in:
parent
73a85c1d0d
commit
18daa5b074
@ -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});
|
||||
|
Loading…
x
Reference in New Issue
Block a user