MockFamily

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

cleanUp
void cleanUp()
Undocumented in source. Be warned that the author may not have intended to support it.
componentAddedToEntity
void componentAddedToEntity(Entity entity_a, ClassInfo class_a)
Undocumented in source. Be warned that the author may not have intended to support it.
componentRemovedFromEntity
void componentRemovedFromEntity(Entity entity_a, ClassInfo class_a)
Undocumented in source. Be warned that the author may not have intended to support it.
newEntity
void newEntity(Entity entity_a)
Undocumented in source. Be warned that the author may not have intended to support it.
nodeList
NodeList nodeList()
Undocumented in source. Be warned that the author may not have intended to support it.
removeEntity
void removeEntity(Entity entity_a)
Undocumented in source. Be warned that the author may not have intended to support it.
resetNode
void resetNode(Node node_a)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From IFamily

nodeList
NodeList nodeList()

Returns the NodeList managed by this class. This should be a reference that remains valid always since it is retained and reused by Systems that use the list. i.e. never recreate the list, always modify it in place.

resetNode
void resetNode(Node node_a)

clean the node (reset component pointers)

newEntity
void newEntity(Entity entity_a)

An entity has been added to the engine. It may already have components so test the entity for inclusion in this family's NodeList.

removeEntity
void removeEntity(Entity entity_a)

An entity has been removed from the engine. If it's in this family's NodeList it should be removed.

componentAddedToEntity
void componentAddedToEntity(Entity entity_a, ClassInfo class_a)

A component has been added to an entity. Test whether the entity's inclusion in this family's NodeList should be modified.

componentRemovedFromEntity
void componentRemovedFromEntity(Entity entity_a, ClassInfo class_a)

A component has been removed from an entity. Test whether the entity's inclusion in this family's NodeList should be modified.

cleanUp
void cleanUp()

The family is about to be discarded. Clean up all properties as necessary. Usually, you will want to empty the NodeList at this time.

Meta