优化玩家管理器

This commit is contained in:
huangxiaolei
2022-12-10 22:42:20 +08:00
parent edd8a98f92
commit d17f687d74
12 changed files with 183 additions and 135 deletions

View File

@@ -46,12 +46,11 @@ type CommandManager struct {
func NewCommandManager() *CommandManager {
r := new(CommandManager)
// 创建一个公共的开放世界的AI
// 创建AI世界
GAME_MANAGER.OnRegOk(false, &proto.SetPlayerBornDataReq{AvatarId: 10000007, NickName: "System"}, 1, 0)
r.system = USER_MANAGER.GetOnlineUser(1)
// 开放大世界
r.system.SceneLoadState = model.SceneEnterDone
r.system.DbState = model.DbNormal
r.system.SceneLoadState = model.SceneEnterDone
WORLD_MANAGER.InitBigWorld(r.system)
// 初始化