mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
调试
This commit is contained in:
@@ -519,6 +519,17 @@ func (g *Group) GetEntityByConfigId(configId uint32) *Entity {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (g *Group) DestroyEntity(entityId uint32) {
|
||||
for _, suite := range g.suiteMap {
|
||||
for _, entity := range suite.entityMap {
|
||||
if entity.id == entityId {
|
||||
delete(suite.entityMap, entity.id)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Suite) GetEntityById(entityId uint32) *Entity {
|
||||
return s.entityMap[entityId]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user