优化关闭服务器以及用户重连

添加命令管理器
This commit is contained in:
UnKownOwO
2022-11-24 15:48:59 +08:00
parent 9d095d21ec
commit c96deb20e2
5 changed files with 241 additions and 71 deletions

View File

@@ -103,6 +103,8 @@ func (g *GameManager) PrivateChatReq(player *model.Player, payloadMsg pb.Message
chatInfo.Content = &proto.ChatInfo_Text{
Text: text,
}
// 输入命令 会检测是否为命令的
g.commandManager.InputCommand(text)
case *proto.PrivateChatReq_Icon:
icon := content.(*proto.PrivateChatReq_Icon).Icon
chatInfo.Content = &proto.ChatInfo_Icon{