defines properties that can be added to entities
Parameter | Type | Description |
---|---|---|
environment | String / Number | name of the environment to add the component to |
name | String / Number | unique name of the component |
builder | Function | a function that returns an object containing properties to add to entities. This function can take whatever parameters you would like |
returns an array of all the Entities containing this Component
returns an array of the names of all the Entities containing this Component
duplicate this Component to another Environment
Parameter | Type | Description |
---|---|---|
environment | String / Number | Name of the Environment to add the duplicated Component to |
destroy this Component and remove it from all Entities that have this Component
String / Number
reference to the name of the component
Function
reference to the builder of the component