Ecs class

Constructors

Ecs({int maxEntity = 1024, int maxComponents = 32, int maxSystems = 16})

Properties

componentManager ComponentManager
final
entityManager EntityManager
final
hashCode int
The hash code for this object.
no setterinherited
maxComponents int
final
maxEntity int
final
maxSystems int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemManager SystemManager
final

Methods

addComponent(ComponentId id, Entity entity) → void
addComponents(List<ComponentId> ids, Entity entity) → void
containsComponentId(Signature signature, ComponentId id) bool
createEntity() Entity
createSignature(List<ComponentId> list) Signature
destroyEntity(Entity entity) → void
disableSystem(SystemId systemId) → void
enableSystem(SystemId systemId, SystemPhases phase) → void
findComponentId<T extends Component>() ComponentId
forEach(void action(EcsSystem element, Uint16Set entities)) → void
getComponentList<T extends Component>() List<T>
hasComponent(ComponentId id, Entity entity) bool
init() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerComponent<T extends Component>(T creator(int index), int capacity) ComponentId
registerSystem<T extends EcsSystem>(T creator(), {Signature signature = 0, required SystemPhases phase}) SystemId
removeComponent(ComponentId id, Entity entity) → void
toString() String
A string representation of this object.
override
update(double deltaTime) → void

Operators

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