new ArchetypeManager(world)
ArchetypeManager
Parameters:
Name | Type | Description |
---|---|---|
world |
World | A world instance |
Members
-
<static> archetypes :Object
-
A set of archetypes
Type:
- Object
-
<static> world :World
-
Copy of World instance
Type:
Methods
-
addArchetype(jsonArchetype)
-
Build and Add an archetype to the manager
Parameters:
Name Type Description jsonArchetype
jsonArchetype A json archetype object
-
getArchetypeByName(name)
-
Get an archetype by name
Parameters:
Name Type Description name
string The name of the archetype
Returns:
An archetype object
- Type
- Archetype
-
getArchetypes()
-
Get a set of archetypes
Returns:
Set of archetypes
- Type
- Object
-
removeArchetype(name)
-
Remove an archetype
Parameters:
Name Type Description name
string The name of the archetype