Methods
addComponent(component) → {Entity}
Add a component to the entity.
Parameters:
Name | Type | Description |
---|---|---|
component |
Component | The component to add. |
- Source:
Returns:
This entity.
- Type
- Entity
removeComponent(component) → {Entity}
Remove a component from the entity.
Parameters:
Name | Type | Description |
---|---|---|
component |
Component | String | The component to remove. |
- Source:
Returns:
This entity.
- Type
- Entity