优化代码

This commit is contained in:
huangxiaolei
2022-11-24 14:17:21 +08:00
parent 21d549c507
commit 2b3a152af6
13 changed files with 242 additions and 222 deletions
+11 -11
View File
@@ -42,17 +42,17 @@ func (g *GameManager) OnLoginOk(userId uint32, player *model.Player, clientSeq u
world.AddPlayer(player, player.SceneId)
player.WorldId = world.id
// TODO 薄荷标记
if world.IsBigWorld() {
bigWorld := world.GetSceneById(3)
for pos := range g.worldManager.worldStatic.terrain {
bigWorld.CreateEntityGadget(&model.Vector{
X: float64(pos.X),
Y: float64(pos.Y),
Z: float64(pos.Z),
}, 3003009)
}
}
//// TODO 薄荷标记
//if world.IsBigWorld() {
// bigWorld := world.GetSceneById(3)
// for pos := range g.worldManager.worldStatic.terrain {
// bigWorld.CreateEntityGadget(&model.Vector{
// X: float64(pos.X),
// Y: float64(pos.Y),
// Z: float64(pos.Z),
// }, 3003009)
// }
//}
// PacketPlayerDataNotify
playerDataNotify := new(proto.PlayerDataNotify)