Photon Server API

Static Public Member Functions | List of all members
Photon.Hive.Common.GameParameterReader Class Reference

Provides methods to read build in game properties from a hashtable. More...

Static Public Member Functions

static bool TryReadBooleanParameter (Hashtable hashtable, GameParameter paramter, out bool? result, out object value)
 
static bool TryReadByteParameter (Hashtable hashtable, GameParameter paramter, out byte? result, out object value)
 
static bool TryGetProperties (Hashtable propertyTable, out byte? maxPlayer, out bool? isOpen, out bool? isVisible, out object[] properties, out string[] expectedUsers, out string debugMessage)
 
static bool TryGetProperties (Hashtable propertyTable, out byte? maxPlayer, out bool? isOpen, out bool? isVisible, out object[] properties, out int? masterClientId, out string[] expectedUsers, out string debugMessage)
 
static Hashtable GetLobbyGameProperties (Hashtable source, HashSet< object > list)
 

Detailed Description

Provides methods to read build in game properties from a hashtable.

Build in game properties in the load balancing project are stored as byte values. Because some protocols used by photon (Flash, WebSockets) does not support byte values the properties will also be searched in the hashtable using there int representation. If an int representation is found it will be converted to the byte representation of the game property.

Member Function Documentation

◆ GetLobbyGameProperties()

static Hashtable Photon.Hive.Common.GameParameterReader.GetLobbyGameProperties ( Hashtable  source,
HashSet< object >  list 
)
inlinestatic

◆ TryGetProperties() [1/2]

static bool Photon.Hive.Common.GameParameterReader.TryGetProperties ( Hashtable  propertyTable,
out byte?  maxPlayer,
out bool?  isOpen,
out bool?  isVisible,
out object[]  properties,
out int?  masterClientId,
out string[]  expectedUsers,
out string  debugMessage 
)
inlinestatic

◆ TryGetProperties() [2/2]

static bool Photon.Hive.Common.GameParameterReader.TryGetProperties ( Hashtable  propertyTable,
out byte?  maxPlayer,
out bool?  isOpen,
out bool?  isVisible,
out object[]  properties,
out string[]  expectedUsers,
out string  debugMessage 
)
inlinestatic

◆ TryReadBooleanParameter()

static bool Photon.Hive.Common.GameParameterReader.TryReadBooleanParameter ( Hashtable  hashtable,
GameParameter  paramter,
out bool?  result,
out object  value 
)
inlinestatic

◆ TryReadByteParameter()

static bool Photon.Hive.Common.GameParameterReader.TryReadByteParameter ( Hashtable  hashtable,
GameParameter  paramter,
out byte?  result,
out object  value 
)
inlinestatic