Public Functions:Room Getter Functions
These are getter functions that work only for room assets.
-
MyGame.$("room").getExits()
Object
If the specified asset is a room, this method returns that room's exits
as an object with key/value pairs corresponding to the directions of the
exits / and the IDs of the exit objects. This offers a way to get the
exits of rooms other than the current one. Returns
nullif the specified asset is not a room. -
MyGame.$("room").getDirections()
Object
If the specified asset is a room, this method returns that room's exit
directions in an array. This offers a way to get the directions of rooms
other than the current one. Returns
nullif the specified asset is not a room.