general purpose object
| Parameter | Type | Description | Default |
|---|---|---|---|
| environment | String / Number | name of the Environment to add the Entity to | |
| name | String / Number | unique name of the Entity | |
| limit | Int | (OPTIONAL) limit of key depth when adding Components | 3 |
add a Tag to this Entity
| Parameter | Type | Description |
|---|---|---|
| tag | String / Number | Tag to add |
return if this Entity has a given Tag
| Parameter | Type | Description |
|---|---|---|
| tag | String / Number | Tag to check |
remove a Tag from this Entity
| Parameter | Type | Description |
|---|---|---|
| tag | String / Number | Tag to remove |
return an array of all the Tags this Entity has
add a component to this Entity
| Parameter | Type | Description |
|---|---|---|
| component | String / Number | Component to add |
| ...params | any | params to pass to the Component builder |
returns if this Entity has a specific Component
| Parameter | Type | Description |
|---|---|---|
| component | String / Number | name of the Component |
removes a Component from this Entity
| Parameter | Type | Description |
|---|---|---|
| component | String / Number | name of the Component |
returns an array of the names of all the Components this Entity has
destroy this Entity
reference to the name of the Entity
reference to the Environment this Entity is a part of