RoomManager

Keeps track of all the individual rooms in the game

Constructor

new RoomManager()

Properties:
Name Type Description
startingRoom string

EntityReference of the room players should spawn in when created

Methods

addRoom(room)

Parameters:
Name Type Description
room Room

findExit(room, exitName) → {false|Object}

Get the exit definition of a room's exit by searching the exit name

Parameters:
Name Type Description
room Room
exitName string

exit name search

Returns:
false | Object

getRoom(entityRef) → {Room}

Parameters:
Name Type Description
entityRef string
Returns:
Room

removeRoom(room)

Parameters:
Name Type Description
room Room