DestroyQueue

A queue of entities to be destroyed. This is used to prevent entities from being destroyed while they are being iterated over.

Constructor

new DestroyQueue()

Methods

(static) Add(object) → {void}

Adds an entity to the destroy queue. Note: If a component is added to the destroy queue, The entire entity will be destroyed.

Parameters:
NameTypeDescription
objectEntity

The entity to be destroyed. or the component of the entity to be destroyed.

Returns:
Type: 
void