EntityManager Class
The entity manager class.
Item Index
Methods
Properties
Methods
checkIn
(
-
id
Add new id in ids {Bag}
Parameters:
-
id
Number
checkOut
()
Number
Check an available id
Returns:
Number:
next available id
getActiveEntityCount
()
Number
Get how many entities are active in this world.
Returns:
Number:
how many entities are currently active.
getTotalAdded
()
Number
Get how many entities have been added to the world since start.
Returns:
Number:
how many entities have been added.
getTotalCreated
()
Number
Get how many entities have been created in the world since start. Note: A created entity may not have been added to the world, thus created count is always equal or larger than added count.
Returns:
Number:
how many entities have been created since start.
getTotalDeleted
()
Number
Get how many entities have been deleted from the world since start.
Returns:
Number:
how many entities have been deleted since start.
initialize
()
Initialize
isActive
(
Boolean
-
entityId
Check if this entity is active. Active means the entity is being actively processed.
Parameters:
-
entityId
Number
Returns:
Boolean:
true if active, false if not
isEnabled
(
Boolean
-
entityId
Check if the specified entityId is enabled.
Parameters:
-
entityId
Number
Returns:
Boolean:
true if enabled, false if it is disabled