AreaManager

Stores references to, and handles distribution of, active areas

Constructor

new AreaManager()

Properties:
Name Type Description
areas Map.<string, Area>

Methods

addArea(area)

Parameters:
Name Type Description
area Area

distribute(state)

Hydrate all rooms in all areas

Parameters:
Name Type Description
state GameState

getArea(name)

Parameters:
Name Type Description
name string
Returns:
-

Area

getAreaByReference(entityRef)

Parameters:
Name Type Description
entityRef string
Returns:
-

Area

removeArea(area)

Parameters:
Name Type Description
area Area

tickAll(state)

Apply updateTick to all areas in the game

Parameters:
Name Type Description
state GameState