主协程操作命令管理器

This commit is contained in:
UnKownOwO
2022-11-25 11:23:08 +08:00
parent 7adcd3e189
commit 85f5ed1c96
2 changed files with 4 additions and 17 deletions

View File

@@ -62,6 +62,9 @@ func (g *GameManager) Start() {
case localEvent := <-g.localEventManager.localEventChan:
// 处理本地事件
g.localEventManager.LocalEventHandle(localEvent)
case command := <-g.commandManager.commandTextInput:
// 处理传入的命令 (普通玩家 GM命令)
g.commandManager.ExecCommand(command)
}
}
}()