实现跨服加入世界&玩家跨服在线迁移功能(部分完成)

This commit is contained in:
flswld
2022-12-25 20:09:19 +08:00
parent 9feeb4eafa
commit c7ba154ab4
15 changed files with 437 additions and 136 deletions

View File

@@ -48,7 +48,7 @@ func NewCommandManager() *CommandManager {
// 创建AI世界
GAME_MANAGER.OnRegOk(false, &proto.SetPlayerBornDataReq{AvatarId: 10000007, NickName: "System"}, 1, 0, "")
GAME_MANAGER.FightServerSelectNotify(1, "")
GAME_MANAGER.ServerAppidBindNotify(1, "", 0)
r.system = USER_MANAGER.GetOnlineUser(1)
r.system.DbState = model.DbNormal
r.system.SceneLoadState = model.SceneEnterDone