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 stateGameState bundlestring Name of this bundle this area is defined in
entityRefstring Area name
Returns:
Area