Methods
add(entity)
- Source:
Add an entity to the system
Parameters:
Name | Type | Description |
---|---|---|
entity |
Entity |
addComponent(component)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
component |
Component |
addSystem(system)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
system |
System |
delete(id)
- Source:
Remove an entity from the system
Parameters:
Name | Type | Description |
---|---|---|
id |
* | the ID of the entity that should be deleted |
get(component_names) → {Map.<String, Entity>}
- Source:
Get all entities with the given component(s)
Parameters:
Name | Type | Description |
---|---|---|
component_names |
String | Array.<String> |
Returns:
all entities that have ALL requested component_names
- Type
- Map.<String, Entity>