Photon Server API
Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Photon.LoadBalancing.UnifiedClient.UnifiedTestClient Class Reference
Inheritance diagram for Photon.LoadBalancing.UnifiedClient.UnifiedTestClient:

Public Member Functions

 UnifiedTestClient (INUnitClient client, IAuthenticationScheme authScheme)
 
void CheckThereIsErrorInfoEvent (int timeout=3000)
 
void CheckThereIsNoErrorInfoEvent (int timeout=3000)
 
OperationResponse Authenticate (string userId, Dictionary< byte, object > authParameter)
 
GetLobbyStatsResponse GetLobbyStats (string[] lobbyNames, byte[] lobbyTypes, short expectedResult=ErrorCode.Ok)
 
CreateGameResponse CreateRoom (string roomName, RoomOptions roomOptions, TypedLobby lobby, Hashtable playerProperties, bool onGameServer, short expectedResult=ErrorCode.Ok)
 
CreateGameResponse CreateRoom (string roomName, RoomOptions roomOptions, TypedLobby lobby, Hashtable playerProperties, bool onGameServer, string pluginName, short expectedResult=ErrorCode.Ok)
 
CreateGameResponse CreateGame (string gameId, short expectedResult=ErrorCode.Ok)
 
CreateGameResponse CreateGame (string gameId, bool isVisible, bool isOpen, byte maxPlayer, short expectedResult=ErrorCode.Ok)
 
CreateGameResponse CreateGame (string gameId, bool isVisible, bool isOpen, byte maxPlayer, Hashtable gameProperties, string[] lobbyProperties, Hashtable playerProperties, short expectedResult=ErrorCode.Ok)
 
CreateGameResponse CreateGame (CreateGameRequest createGameRequest, short expectedResult=ErrorCode.Ok)
 
JoinGameResponse JoinRoom (string roomName, Hashtable playerProperties, int actorId, RoomOptions roomOptions, bool createIfNotExists, bool onGameServer, short errorCode=ErrorCode.Ok)
 
JoinGameResponse JoinGame (string gameId, short expectedResult=ErrorCode.Ok)
 
JoinGameResponse JoinGame (JoinGameRequest joinRequest, short expectedResult=ErrorCode.Ok)
 
JoinRandomGameResponse JoinRandomGame (Hashtable gameProperties, byte maxPlayers, Hashtable actorProperties, MatchmakingMode mode, string lobbyName, AppLobbyType lobbyType, string sqlLobbyFilter, short errorCode=ErrorCode.Ok)
 
JoinRandomGameResponse JoinRandomGame (JoinRandomGameRequest request, short expectedResult, params string[] expectedRoomNames)
 
OperationResponse JoinRandomGame (Hashtable gameProperties, string query, short expectedResult, string lobbyName=null, byte?lobbyType=null, params string[] expectedRoomNames)
 
OperationResponse LeaveGame (bool IsInActive=false)
 
OperationResponse JoinLobby (string lobbyName=null, byte?lobbyType=null, int maxGameCount=0, short expectedResult=0)
 
OperationResponse FindFriends (string[] userIds, out bool[] onlineStates, out string[] userStates)
 
virtual bool OpJoinLobby ()
 Calls OpJoinLobby(string name, LobbyType lobbyType). More...
 
virtual bool OpJoinLobby (string lobbyName, AppLobbyType lobbyType)
 Joins the lobby on the Master Server, where you get a list of RoomInfos of currently open rooms. This is an async request which triggers a OnOperationResponse() call. More...
 
virtual bool OpLeaveLobby ()
 
OperationResponse OpSetPropertiesOfRoom (Hashtable gameProperties)
 Sets properties of a room. Internally this uses OpSetProperties, which can be used to either set room or player properties. More...
 
OperationResponse OpSetPropertiesOfRoom (Hashtable gameProperties, bool webForward)
 Sets properties of a room. Internally this uses OpSetProperties, which can be used to either set room or player properties. More...
 
GetPropertiesResponse GetActorsProperties ()
 

Static Protected Member Functions

static void JoinRequestToDictionary (JoinGameRequest joinRequest, OperationRequest request)
 
static void RoomOptionsToOpParameters (JoinGameRequest request, RoomOptions roomOptions)
 
static OperationRequest CreateAuthenticateRequest (string userId)
 
static OperationRequest CreateFindfriendsRequest (string[] userIdList)
 
static CreateGameResponse GetCreateGameResponse (OperationResponse op)
 
static JoinGameResponse GetJoinGameResponse (OperationResponse op)
 
static GetLobbyStatsResponse GetLobbyStatsResponse (OperationResponse op)
 
static JoinRandomGameResponse GetJoinRandomGameResponse (OperationResponse op)
 
static GetPropertiesResponse CreateGetPropertiesResponse (OperationResponse response)
 
static bool TryGetParameter< T > (OperationResponse response, byte parameterCode, out T value)
 
static T GetParameter< T > (OperationResponse response, byte parameterCode, bool isOptional)
 

Protected Attributes

IAuthenticationScheme authenticationScheme
 

Constructor & Destructor Documentation

Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.UnifiedTestClient ( INUnitClient  client,
IAuthenticationScheme  authScheme 
)
inline

Member Function Documentation

OperationResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.Authenticate ( string  userId,
Dictionary< byte, object >  authParameter 
)
inline
void Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CheckThereIsErrorInfoEvent ( int  timeout = 3000)
inline
void Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CheckThereIsNoErrorInfoEvent ( int  timeout = 3000)
inline
static OperationRequest Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CreateAuthenticateRequest ( string  userId)
inlinestaticprotected
static OperationRequest Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CreateFindfriendsRequest ( string[]  userIdList)
inlinestaticprotected
CreateGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CreateGame ( string  gameId,
short  expectedResult = ErrorCode.Ok 
)
inline
CreateGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CreateGame ( string  gameId,
bool  isVisible,
bool  isOpen,
byte  maxPlayer,
short  expectedResult = ErrorCode.Ok 
)
inline
CreateGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CreateGame ( string  gameId,
bool  isVisible,
bool  isOpen,
byte  maxPlayer,
Hashtable  gameProperties,
string[]  lobbyProperties,
Hashtable  playerProperties,
short  expectedResult = ErrorCode.Ok 
)
inline
CreateGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CreateGame ( CreateGameRequest  createGameRequest,
short  expectedResult = ErrorCode.Ok 
)
inline
static GetPropertiesResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CreateGetPropertiesResponse ( OperationResponse  response)
inlinestaticprotected
CreateGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CreateRoom ( string  roomName,
RoomOptions  roomOptions,
TypedLobby  lobby,
Hashtable  playerProperties,
bool  onGameServer,
short  expectedResult = ErrorCode.Ok 
)
inline
CreateGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.CreateRoom ( string  roomName,
RoomOptions  roomOptions,
TypedLobby  lobby,
Hashtable  playerProperties,
bool  onGameServer,
string  pluginName,
short  expectedResult = ErrorCode.Ok 
)
inline
OperationResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.FindFriends ( string[]  userIds,
out bool[]  onlineStates,
out string[]  userStates 
)
inline
GetPropertiesResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.GetActorsProperties ( )
inline
static CreateGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.GetCreateGameResponse ( OperationResponse  op)
inlinestaticprotected
static JoinGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.GetJoinGameResponse ( OperationResponse  op)
inlinestaticprotected
static JoinRandomGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.GetJoinRandomGameResponse ( OperationResponse  op)
inlinestaticprotected
GetLobbyStatsResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.GetLobbyStats ( string[]  lobbyNames,
byte[]  lobbyTypes,
short  expectedResult = ErrorCode.Ok 
)
inline
static GetLobbyStatsResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.GetLobbyStatsResponse ( OperationResponse  op)
inlinestaticprotected
static T Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.GetParameter< T > ( OperationResponse  response,
byte  parameterCode,
bool  isOptional 
)
inlinestaticprotected
JoinGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.JoinGame ( string  gameId,
short  expectedResult = ErrorCode.Ok 
)
inline
JoinGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.JoinGame ( JoinGameRequest  joinRequest,
short  expectedResult = ErrorCode.Ok 
)
inline
OperationResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.JoinLobby ( string  lobbyName = null,
byte?  lobbyType = null,
int  maxGameCount = 0,
short  expectedResult = 0 
)
inline
JoinRandomGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.JoinRandomGame ( Hashtable  gameProperties,
byte  maxPlayers,
Hashtable  actorProperties,
MatchmakingMode  mode,
string  lobbyName,
AppLobbyType  lobbyType,
string  sqlLobbyFilter,
short  errorCode = ErrorCode.Ok 
)
inline
JoinRandomGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.JoinRandomGame ( JoinRandomGameRequest  request,
short  expectedResult,
params string[]  expectedRoomNames 
)
inline
OperationResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.JoinRandomGame ( Hashtable  gameProperties,
string  query,
short  expectedResult,
string  lobbyName = null,
byte?  lobbyType = null,
params string[]  expectedRoomNames 
)
inline
static void Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.JoinRequestToDictionary ( JoinGameRequest  joinRequest,
OperationRequest  request 
)
inlinestaticprotected
JoinGameResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.JoinRoom ( string  roomName,
Hashtable  playerProperties,
int  actorId,
RoomOptions  roomOptions,
bool  createIfNotExists,
bool  onGameServer,
short  errorCode = ErrorCode.Ok 
)
inline
OperationResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.LeaveGame ( bool  IsInActive = false)
inline
virtual bool Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.OpJoinLobby ( )
inlinevirtual

Calls OpJoinLobby(string name, LobbyType lobbyType).

Returns
If the operation could be sent (requires connection).
virtual bool Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.OpJoinLobby ( string  lobbyName,
AppLobbyType  lobbyType 
)
inlinevirtual

Joins the lobby on the Master Server, where you get a list of RoomInfos of currently open rooms. This is an async request which triggers a OnOperationResponse() call.

Parameters
lobbyNameThe lobby join to.
lobbyTypetype of lobby
Returns
If the operation could be sent (has to be connected).
virtual bool Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.OpLeaveLobby ( )
inlinevirtual
OperationResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.OpSetPropertiesOfRoom ( Hashtable  gameProperties)
inline

Sets properties of a room. Internally this uses OpSetProperties, which can be used to either set room or player properties.

Parameters
gameProperties
Returns
If the operation could be sent (has to be connected).
OperationResponse Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.OpSetPropertiesOfRoom ( Hashtable  gameProperties,
bool  webForward 
)
inline

Sets properties of a room. Internally this uses OpSetProperties, which can be used to either set room or player properties.

Parameters
gameProperties
webForward
Returns
If the operation could be sent (has to be connected).
static void Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.RoomOptionsToOpParameters ( JoinGameRequest  request,
RoomOptions  roomOptions 
)
inlinestaticprotected
static bool Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.TryGetParameter< T > ( OperationResponse  response,
byte  parameterCode,
out T  value 
)
inlinestaticprotected

Member Data Documentation

IAuthenticationScheme Photon.LoadBalancing.UnifiedClient.UnifiedTestClient.authenticationScheme
protected