C# Class RoomOptions, Droid-Soccer

Wraps up common room properties needed when you create rooms.
This directly maps to what the fields in the Room class.
Exibir arquivo Open project: repelex/Droid-Soccer Class Usage Examples

Public Properties

Property Type Description
customRoomProperties ExitGames.Client.Photon.Hashtable
customRoomPropertiesForLobby string[]
maxPlayers byte

Property Details

customRoomProperties public_oe property

The room's custom properties to set. Use string keys!
Custom room properties are any key-values you need to define the game's setup. The shorter your keys are, the better. Example: Map, Mode (could be "m" when used with "Map"), TileSet (could be "t").
public Hashtable,ExitGames.Client.Photon customRoomProperties
return ExitGames.Client.Photon.Hashtable

customRoomPropertiesForLobby public_oe property

Defines the custom room properties that get listed in the lobby.
Name the custom room properties that should be available to clients that are in a lobby. Use with care. Unless a custom property is essential for matchmaking or user info, it should not be sent to the lobby, which causes traffic and delays for clients in the lobby. Default: No custom properties are sent to the lobby.
public string[] customRoomPropertiesForLobby
return string[]

maxPlayers public_oe property

Max number of players that can be in the room at any time. 0 means "no limit".
public byte maxPlayers
return byte