new RoomEvents()

Creates a new RoomEvents instance.

The RoomSettings.events property must be set to this instance during Room creation.

See also
RoomSettings#events
CreateRoomRequest

Properties

allowUserCountChange  boolean

Sets whether or not the userCountChange event should be dispatched whenever the users (or players+spectators) count changes in the Room.

Default value
false
See also
SFSEvent.USER_COUNT_CHANGE

allowUserEnter  boolean

Sets whether the userEnterRoom event should be dispatched whenever a user joins the Room or not.

Default value
false
See also
SFSEvent.USER_ENTER_ROOM

allowUserExit  boolean

Sets whether the userExitRoom event should be dispatched whenever a user leaves the Room or not.

Default value
false
See also
SFSEvent.USER_EXIT_ROOM

allowUserVariablesUpdate  boolean

Sets whether or not the userVariablesUpdate event should be dispatched whenever a user in the Room updates his User Variables.

Default value
false
See also
SFSEvent.USER_VARIABLES_UPDATE