EntityList::destroy

This commit is contained in:
cha0s 2019-03-21 01:32:49 -05:00
parent 10be72e6fa
commit e31d7be41a

View File

@ -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];
}