environment
Parameter | Type | Description |
---|---|---|
name | String / Number | unique name of the Environment |
get a specific component in this Environment
Parameter | Type | Description |
---|---|---|
name | String / Number | name of the component |
duplicates a component from another environment and adds it to itself
Parameter | Type | Description |
---|---|---|
environment | String / Number | name of the environment to duplicate the component from |
component | String / Number | name of the component to duplicate |
returns if the environment contains a component with a given name
Parameter | Type | Description |
---|---|---|
component | String / Number | name of the component |
removes a component from the Environment, and from all the Entities in this Environment
Parameter | Type | Description |
---|---|---|
component | String / Number | name of the component |
returns an array containing the names of all the Components in this Environment.
creates a new Entity and adds it to this Environment
Parameter | Type | Description |
---|---|---|
entity | String / Number | unique name of this new Entity |
gets a specific entity in the Environment
Parameter | Type | Description |
---|---|---|
entity | String / Number | name of the Entity |
returns an array containing the names of all the Entities in this Environment.
String / Number
reference to the name of the Environment