Photon Server API

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

A collection of methods useful in one or another context. More...

Static Public Member Functions

static void ConvertAs3WellKnownPropertyKeys (Hashtable gameProps, Hashtable actorProps)
 Converts well known properties sent by AS3/Flash clients - from string to byte-keys. More...
 
static void ConvertAs3WellKnownPropertyKeys (IList gamePropertyKeys, IList actorPropertyKeys)
 Converts well known properties sent by AS3/Flash clients - from string to byte-keys. More...
 

Detailed Description

A collection of methods useful in one or another context.

Member Function Documentation

◆ ConvertAs3WellKnownPropertyKeys() [1/2]

static void Photon.Hive.Common.Utilities.ConvertAs3WellKnownPropertyKeys ( Hashtable  gameProps,
Hashtable  actorProps 
)
inlinestatic

Converts well known properties sent by AS3/Flash clients - from string to byte-keys.

Check if peer is a flash (amf3) client because flash clients does not support byte keys in a hastable. If a flash client likes to match a game with a specific 'MaxPlayer' value 'MaxPlayer' will be sent with the string key "255" and the max player value as int.

Parameters
gamePropsA game properties hashtable.
actorPropsA actor properties hashtable.

◆ ConvertAs3WellKnownPropertyKeys() [2/2]

static void Photon.Hive.Common.Utilities.ConvertAs3WellKnownPropertyKeys ( IList  gamePropertyKeys,
IList  actorPropertyKeys 
)
inlinestatic

Converts well known properties sent by AS3/Flash clients - from string to byte-keys.

Parameters
gamePropertyKeysThe game properties list.
actorPropertyKeysThe actor properties list.