mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-23 14:32:27 +08:00
主协程操作命令管理器
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user