C# Класс RoomOptions, Droid-Soccer

Wraps up common room properties needed when you create rooms.
This directly maps to what the fields in the Room class.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
customRoomProperties ExitGames.Client.Photon.Hashtable
customRoomPropertiesForLobby string[]
maxPlayers byte

Описание свойств

customRoomProperties публичное свойство

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
Результат ExitGames.Client.Photon.Hashtable

customRoomPropertiesForLobby публичное свойство

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
Результат string[]

maxPlayers публичное свойство

Max number of players that can be in the room at any time. 0 means "no limit".
public byte maxPlayers
Результат byte