判空&&调试日志

This commit is contained in:
flswld committed 2023-10-18 15:04:13 +08:00
1 parent 389210b12b
commit bd12f6a8b7
8 files changed
+53 -8

No files matched your search

+4
View File
@@ -269,6 +269,10 @@ func (a *AoiManager) RemoveObjectFromGridByPos(objectId int64, x, y, z float32)
return a.RemoveObjectFromGrid(objectId, gid)
}
func (a *AoiManager) Debug() map[uint32]*Grid {
return a.gridMap
}
// Grid 地图格子
type Grid struct {
gid uint32 // 格子id