Room

Represents a room of players

Constructor

Parameter Type Description
t Object  
t.roomId Object Room ID
t.name String Room Name
t.triggers Object  
t.map Object Map Setup
t.map.triggers Object  
t.layers Array.<Object>  
t.players Array.<Object> Players in the room

Properties

.roomId

.name

Type: String

.players

.layers

Type: Array.<Object>

.map

Type: :doc:`Map`_

.e

.i

.players[undefined]

Methods

.addPlayer()

.getPlayer()

.removePlayer()

.updatePlayer()