This class provides the Room settings that you can pass to a CreateRoomRequest

Namespace: Sfs2X.Requests
Assembly: SmartFox2 (in SmartFox2.dll) Version: 0.9.14.0

Syntax

C#
public class RoomSettings

Remarks

Some of these fields are mandatory and some other are populated by default if you don't specify them.
  • name: mandatory, each Room must have a unique name
  • password: optional, by default a Room is created without a password
  • groupId: optional, by default Rooms are created in the 'default' group if none is specified
  • isGame: optional, by default isGame flage is set to false
  • maxUsers: optional, if no value is provided the default value of 10 is used
  • maxSpectators: optional, if no value is provided the default value of 0 is used
  • maxVariables: optional, if no value is provided the default value of 5 is used
  • variables: optional, an array of RoomVariables to be set at creation time
  • permissions: optional, if no value is provided the default RoomPermissions configuration is used
  • events: optional, if no value is provided the default RoomEvents configuration is used
  • extension: optional. No default values

Inheritance Hierarchy

System..::..Object
  Sfs2X.Requests..::..RoomSettings
    Sfs2X.Requests.Game..::..SFSGameSettings

See Also