refactor(controller): 移除未使用的地图相关函数
- 删除了 controller 包中多个与地图相关的 Go 文件 - 移除了未使用的 MapIn、MapHot、MapOut 和 MapList 函数 - 在 space 包中添加了对玩家地图的特殊处理逻辑
This commit is contained in:
@@ -80,6 +80,12 @@ func GetSpace(id uint32) *Space {
|
||||
return planet
|
||||
}
|
||||
|
||||
if id > 10000 { //说明是玩家地图GetSpace
|
||||
|
||||
t := NewSpace()
|
||||
planetmap.Store(id, t)
|
||||
return t
|
||||
}
|
||||
//如果不ok,说明星球未创建,那就新建星球
|
||||
|
||||
for _, v := range xml.MapConfig.Maps {
|
||||
|
||||
Reference in New Issue
Block a user