new Archetype(Array)
Archetype
Parameters:
| Name | Type | Description |
|---|---|---|
Array |
array | of components |
Methods
-
addComponent(component)
-
Add a component to the archetype
Parameters:
Name Type Description componentObject -
-
getComponents()
-
Get the components' array
Returns:
array of components
- Type
- array