整理代码,私有变量接口化访问

This commit is contained in:
flswld
2023-02-09 01:01:05 +08:00
parent 98c35380b1
commit 9d6e95a6b4
21 changed files with 661 additions and 375 deletions

View File

@@ -50,6 +50,10 @@ func NewCommandManager() *CommandManager {
return r
}
func (c *CommandManager) GetCommandTextInput() chan *CommandMessage {
return c.commandTextInput
}
// SetSystem 设置GM指令聊天消息机器人
func (c *CommandManager) SetSystem(system *model.Player) {
c.system = system