new AreaFactory()
Methods
-
clone()
-
- See:
-
create(state, bundle, entityRef) → {Area}
-
Create a new instance of an area by name. Resulting area will not have any of its contained entities (items, npcs, rooms) hydrated. You will need to call
area.hydrate(state)
Parameters:
Name Type Description state
GameState bundle
string Name of this bundle this area is defined in
entityRef
string Area name
Returns:
Area