MockComponentManagerMixin mixin
For Testing.
- Implemented types
- @visibleForTesting
Properties
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
-
getComponent<
T extends Component> (int entity, ComponentType componentType) → T? -
Returns the component of type
T
for the givenentity
.inherited -
getComponentsByType<
T extends Component> (ComponentType type) → List< T> -
Returns all components of
ComponentType type
.inherited -
getComponentsFor(
int entity) → List< Component> -
Returns all components of
entity
.inherited -
initialize(
) → void -
Override to implement code that gets executed when managers are
initialized.
inherited
-
isUpdateNeededForSystem(
EntitySystem system) → bool -
Returns true if the list of entities of
system
need to be updated.inherited -
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