EntityManager class

Manages creation and deletion of every int and gives access to some basic statistcs.

Inheritance

Properties

activeEntityCount int
Get how many entities are active in this world.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalAdded int
Get how many entities have been added to the world since start.
no setter
totalCreated int
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.
no setter
totalDeleted int
Get how many entities have been deleted from the world since start.
no setter
world World
The World where this manager resides.
no setterinherited

Methods

added(int entity) → void
Called when an entity is added to the world.
inherited
deleted(int entity) → void
Called when an entity is being deleted from the world.
inherited
destroy() → void
Called when the world gets destroyed. Override if you need to clean up your manager.
inherited
initialize() → void
Override to implement code that gets executed when managers are initialized.
override
isActive(int entityId) bool
Check if this entity is active. Active means the entity is being actively processed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited