ComponentManager class

Constructors

ComponentManager(int defaultCapacity)

Properties

componentArrays List<ComponentArray<Component>>
final
defaultCapacity int
final
hashCode int
The hash code for this object.
no setterinherited
registerTypes List<Type>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setter

Methods

addComponent(ComponentId id, Entity entity) → void
entityDestroyed(Entity entity, Signature signature) → void
getArray(ComponentId id) ComponentArray<Component>
getComponent(ComponentId id, Entity entity) Component?
getComponentId<T extends Component>() ComponentId
getComponentIdFrom(Type type) ComponentId
getComponentIdList(List<Type> components) List<ComponentId>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register<T extends Component>(T creator(int index), [int? capacity]) ComponentId
removeComponent(ComponentId id, Entity entity) → void
toString() String
A string representation of this object.
override

Operators

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