Add a component to this entity.
Makes this entity a renderable entity added to a pixi container. The Displayable component should not be mutated in a logic system. Instead, mutate Position, Rotatin and Size in logic systems and copy the values into the Displayable component in a render system.
Returns the component instance for the specified component. Useful if you need to modify values on the component
The constructor of a component
Returns the component instance
The constructor of a component
true | false depending on if this entity has the specified component
Executes the provided function if this entity has the specified component
The constructor of a component
A function to be executed if the entity has the component
Remove a component from this entity.
Generated using TypeDoc
A special entity which automatically adds the components Position, Displayable, Rotation and Size, and has the ability to add an object to a Pixi container.