Class: CompositeComponent

CompositeComponent

CompositeComponent is a Component that can be used to group together multiple Components. It's usually subclassed to provide easy building blocks for certain combinations of Components.


new CompositeComponent()

Author:
  • derschmale <http://www.derschmale.com>

Extends

Members


entity

The target entity.

Inherited From:

onUpdate

If provided, this method will be called every frame, allowing updating the entity.

Inherited From:
Overrides:

Methods


addComponent()

Adds a Component to the composite. Usually called in the constructor of the subclass.


onAdded()

Called when this component is added to an Entity.

Inherited From:
Overrides:

onRemoved()

Called when this component is removed from an Entity.

Inherited From:
Overrides:

removeComponent()

Removes a Component to the composite.