a programming paradigm combining traits of OOP and ECS
Event Emitting Object. For use in the creation of components. Event is run when the value of a specific property that an Entity gets from a Component is changed.
| Parameter | Type | Description |
|---|---|---|
| obj | Object | object for use in component |
| event | Function | event to run when properties of obj are changed. Takes (entity, key, val) as parameters |
For use in the creation of components. Event is run when getting the value of a specific property and this property does not have a setter.
| Parameter | Type | Description |
|---|---|---|
| arr | [String] | keys of the getter |
| event | Function | event to run when when the property is gotten. Takes (entity, key) as parameters |
environment
| Parameter | Type | Description |
|---|---|---|
| name | String / Number | unique name of the Environment |
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 |
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 |
Tag identifiers that can be added to Entities
| Parameter | Type | Description |
|---|---|---|
| name | String / Number | the unique name of the Tag |
creates a single instance of an object or module that can be accessed in any module
| Parameter | Type | Description |
|---|---|---|
| name | String / Number | the unique name of the Singleton |
get a specific Environment
| Parameter | Type | Description |
|---|---|---|
| name | String / Number | name of the Environment |
get a specific Component
| Parameter | Type | Description |
|---|---|---|
| name | String / Number | name of the Component |
get a specific Entity
| Parameter | Type | Description |
|---|---|---|
| name | String / Number | name of the Entity |
get a specific Tag
| Parameter | Type | Description |
|---|---|---|
| name | String / Number | name of the Tag |
get a specific Singleton
| Parameter | Type | Description |
|---|---|---|
| name | String / Number | name of the Singleton |
get all entities that contain a sinlge (or multiple) component
| Parameter | Type | Description |
|---|---|---|
| environment | String / Number | Environment to search |
| components | String / [String] | component or components to check for |
get the names of all entities that contain a sinlge (or multiple) component
| Parameter | Type | Description |
|---|---|---|
| environment | String / Number | Environment to search |
| components | String / [String] | component or components to check for |