EntityList::destroy
This commit is contained in:
parent
10be72e6fa
commit
e31d7be41a
|
@ -72,6 +72,12 @@ class EntityListBase {
|
|||
this.quadTree_PRIVATE.add(this.recomputeQuadTreePoint(entity));
|
||||
}
|
||||
|
||||
destroy() {
|
||||
for (const entity of this) {
|
||||
entity.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
entity(uuid) {
|
||||
return this.entities_PRIVATE[uuid];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user