AreaManager()

Stores references to, and handles distribution of, active areas

new AreaManager()

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

Methods

addArea(area)

Parameters:
Name Type Description
area Area

getArea(name)

Parameters:
Name Type Description
name string
Returns:
-

Area

getAreaByReference(entityRef)

Parameters:
Name Type Description
entityRef string
Returns:
-

Area

getPlaceholderArea() → {Area}

Get the placeholder area used to house players who were loaded into an invalid room

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
Fires: