Photon Server API Documentation v5.0RC1

Classes | Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Properties | List of all members
Photon.Hive.HiveHostGame Class Reference
Inheritance diagram for Photon.Hive.HiveHostGame:
Photon.Hive.HiveGame Photon.Hive.Plugin.IPluginHost Photon.SocketServer.Net.IHttpRequestQueueCounters Photon.SocketServer.IUnknownTypeMapper Photon.Common.Plugins.IPluginHttpUtilClient Photon.Hive.Room Photon.LoadBalancing.GameServer.Game

Classes

class  HttpResponseImpl
 

Public Member Functions

 HiveHostGame (GameCreateOptions gameCreateOptions)
 
override bool BeforeRemoveFromCache ()
 Called by the RoomCacheBase if the room is about to be removed from the cache. More...
 
bool ExecuteCacheOperation (CacheOp operation, out string errorMsg)
 this methods allows to execute any cache operation. it can not be used to send user events to send user events use BroadcastEvent More...
 
Dictionary< byte, byte[]> GetGameStateAsByteArray ()
 
void HttpQueueRequestsIncrement ()
 
void HttpQueueResponsesIncrement ()
 
void HttpQueueSuccessIncrement ()
 
void HttpQueueTimeoutIncrement ()
 
void HttpQueueErrorsIncrement ()
 
void HttpQueueOfflineResponsesIncrement ()
 
void HttpQueueConcurrentRequestsIncrement ()
 
void HttpQueueConcurrentRequestsDecrement ()
 
void HttpQueueQueuedRequestsIncrement ()
 
void HttpQueueQueuedRequestsDecrement ()
 
void HttpRequestExecuteTimeIncrement (long ticks)
 
void HttpQueueOnlineQueueCounterIncrement ()
 
void HttpQueueOnlineQueueCounterDecrement ()
 
void HttpQueueBackedoffRequestsIncrement ()
 
void HttpQueueBackedoffRequestsDecrement ()
 
void HttpRequestIncrement ()
 
void HttpSuccessIncrement ()
 
void HttpTimeoutIncrement ()
 
void HttpErrorsIncrement ()
 
void HttpResponseIncrement ()
 
bool OnUnknownType (Type type, ref object obj)
 
override void RemoveInactiveActor (Actor actor)
 
SerializableGameState GetSerializableGameState ()
 The serializable game state can be used to recreate the room after it gets removed from memory. Also SetGameState. More...
 
Dictionary< string, object > GetGameState ()
 
bool SetGameState (Dictionary< string, object > state)
 
- Public Member Functions inherited from Photon.Hive.HiveGame
 HiveGame (string gameName, RoomCacheBase roomCache, IGameStateFactory gameStateFactory=null, int maxEmptyRoomTTL=0, ExtendedPoolFiber executionFiber=null)
 Initializes a new instance of the HiveGame class. More...
 
override string ToString ()
 
void OnActorRemoved (Actor actor)
 
void OnActorDeactivated (Actor actor)
 
- Public Member Functions inherited from Photon.Hive.Room
 Room (string name, RoomCacheBase roomCache=null, IGameStateFactory gameStateFactory=null, int maxEmptyRoomTTL=0, ExtendedPoolFiber executionFiber=null)
 Initializes a new instance of the Room class without a room name. More...
 
override string ToString ()
 
void EnqueueMessage (IMessage message)
 Enqueues an IMessage to the end of the execution queue. More...
 
void EnqueueOperation (HivePeer peer, Operation operationRequest, SendParameters sendParameters)
 Enqueues an OperationRequest to the end of the execution queue. More...
 
IDisposable ScheduleMessage (IMessage message, int timeMs)
 Schedules a message to be processed after a specified time. More...
 
void Dispose ()
 Releases resources used by this instance. More...
 
void Release ()
 
- Public Member Functions inherited from Photon.Hive.Plugin.IPluginHost
void BroadcastEvent (IList< int > recieverActors, int senderActor, byte evCode, Dictionary< byte, object > data, byte cacheOp, SendParameters sendParameters=new SendParameters())
 Send event to a specific list of actors inside the room or update events cache. More...
 
void BroadcastEvent (byte target, int senderActor, byte targetGroup, byte evCode, Dictionary< byte, object > data, byte cacheOp, SendParameters sendParameters=new SendParameters())
 Send event to a predefined target group of actors inside the room or update events cache. More...
 
void BroadcastErrorInfoEvent (string message, SendParameters sendParameters=new SendParameters())
 Used to inform clients of errors. If a callInfo is available in the context of the error then the overload with info should be used. More...
 
void BroadcastErrorInfoEvent (string message, ICallInfo info, SendParameters sendParameters=new SendParameters())
 Used to inform clients of errors. More...
 

Public Attributes

IGamePlugin Plugin => this.pluginWrapper
 
IPluginInstance PluginInstance => this.pluginWrapper.PluginInstance
 
override bool IsPersistent => this.Plugin.IsPersistent
 
bool IsSuspended => this.ExecutionFiber.IsPaused
 
bool IsSyspended => this.IsSuspended
 
- Public Attributes inherited from Photon.Hive.HiveGame
virtual bool IsPersistent => false
 
RoomEventCacheManager EventCache => this.RoomState.EventCache
 
EventCacheDictionary ActorEventCache => this.RoomState.ActorEventCache
 Contains Caching.EventCaches for all actors. More...
 
ActorsManager ActorsManager => this.RoomState.ActorsManager
 
bool CacheDiscarded => this.EventCache.Discarded || this.ActorEventCache.Discarded
 

Protected Member Functions

override void Dispose (bool dispose)
 Releases unmanaged and - optionally - managed resources More...
 
virtual void ResumeGame (Action resumeAction)
 
virtual void SuspendGame (int timeout, Action timeoutAction)
 
virtual void OnActorBanned (Actor actor)
 
virtual void OnActorGlobalBanned (Actor actor)
 
override void HandleCreateGameOperation (HivePeer peer, SendParameters sendParameters, JoinGameRequest createGameRequest)
 
override void HandleJoinGameOperation (HivePeer peer, SendParameters sendParameters, JoinGameRequest joinGameRequest)
 Handles the JoinGameRequest: Joins a peer to a room and calls PublishJoinEvent. Before a JoinOperation reaches this point (inside a room), the HivePeer made sure that it is removed from the previous Room (if there was any). More...
 
void InitPlugin (string pluginName)
 
override void HandleLeaveOperation (HivePeer peer, SendParameters sendParameters, LeaveRequest leaveOperation)
 Handles the LeaveRequest and calls HiveGame.RemovePeerFromGame. More...
 
override void HandleRaiseEventOperation (HivePeer peer, RaiseEventRequest raiseEventRequest, SendParameters sendParameters)
 Handles the RaiseEventRequest: Sends a CustomEvent to actors in the room. More...
 
override void HandleRemovePeerMessage (HivePeer peer, int reason, string details)
 
override void HandleSetPropertiesOperation (HivePeer peer, SetPropertiesRequest request, SendParameters sendParameters)
 Handles the SetPropertiesRequest and sends event PropertiesChangedEvent to all Actors in the room. More...
 
virtual bool ProcessBeforeJoinGame (JoinGameRequest joinRequest, SendParameters sendParameters, HivePeer peer)
 
virtual bool ProcessBeforeSetProperties (HivePeer peer, SetPropertiesRequest request, SendParameters sendParameters)
 
virtual bool ProcessSetProperties (HivePeer peer, bool result, string errorMsg, SetPropertiesRequest request, SendParameters sendParameters)
 
virtual bool ProcessBeforeCloseGame (CloseRequest request)
 
override void JoinFailureHandler (byte leaveReason, HivePeer peer, JoinGameRequest request)
 
virtual bool ProcessCloseGame (object state)
 
virtual bool ProcessCreateGame (HivePeer peer, JoinGameRequest joinRequest, SendParameters sendParameters)
 
virtual bool ProcessJoin (Actor actor, JoinGameRequest joinRequest, SendParameters sendParameters, ProcessJoinParams prms, HivePeer peer)
 
virtual bool ProcessLeaveGame (int actorNr, LeaveRequest request, SendParameters sendParameters, HivePeer peer)
 
virtual bool ProcessRaiseEvent (HivePeer peer, RaiseEventRequest raiseEventRequest, SendParameters sendParameters, Actor actor)
 
override OperationResponse GetUserJoinResponse (JoinGameRequest joinRequest, Actor actor, ProcessJoinParams prms)
 
- Protected Member Functions inherited from Photon.Hive.HiveGame
override void OnClose ()
 
virtual void CleanupActor (Actor actor)
 
virtual void DeactivateActor (Actor actor)
 
bool CreateGame (HivePeer peer, JoinGameRequest request, SendParameters sendParameters)
 
override void ExecuteOperation (HivePeer peer, Operation operation, SendParameters sendParameters)
 Called for each operation in the execution queue. Every Room has a queue of incoming operations to execute. Per game ExecuteOperation is never executed multi-threaded, thus all code executed here has thread safe access to all instance members. More...
 
Actor GetActorByPeer (HivePeer peer)
 Gets the actor for a HivePeer. More...
 
Hashtable GetLobbyGameProperties (Hashtable source)
 
virtual void HandleChangeGroupsOperation (HivePeer peer, ChangeGroups changeGroupsRequest, SendParameters sendParameters)
 
virtual void HandleDebugGameOperation (HivePeer peer, DebugGameRequest request, SendParameters sendParameters)
 
virtual void HandleGetPropertiesOperation (HivePeer peer, GetPropertiesRequest getPropertiesRequest, SendParameters sendParameters)
 Handles the GetPropertiesRequest operation: Sends the properties with the OperationResponse. More...
 
bool JoinApplyGameStateChanges (HivePeer peer, JoinGameRequest joinRequest, SendParameters sendParameters, out Actor actor)
 
virtual void SendErrorResponse (HivePeer peer, byte opCode, ErrorCode errorCode, string msg, SendParameters sendParameters, Dictionary< byte, object > errorData=null)
 this method not only allows us to send error response but also we overwrite it to send old error codes to old clients More...
 
void SendErrorResponseAndDisconnect (HivePeer peer, byte opCode, ErrorCode errorCode, string msg, SendParameters sendParameters, Dictionary< byte, object > errorData=null)
 
virtual bool AddExpectedUsers (JoinGameRequest joinRequest)
 
bool JoinSendResponseAndEvents (HivePeer peer, JoinGameRequest joinRequest, SendParameters sendParameters, Actor actor, ProcessJoinParams prms)
 
void LeaveOperationHandler (HivePeer peer, SendParameters sendParameters, LeaveRequest request)
 
void LogOperation (HivePeer peer, OperationRequest operationRequest)
 
override void ProcessMessage (IMessage message)
 Processes a game message. Messages are used for internal communication. Per default only message RemovePeerFromGame is handled, a message that is sent when a player leaves a game due to disconnect or due to a subsequent join to a different game. More...
 
bool RaiseEventOperationHandler (HivePeer peer, RaiseEventRequest raiseEventRequest, SendParameters sendParameters, Actor actor)
 
virtual int RemovePeerFromGame (HivePeer peer, bool isComingBack)
 Removes a peer from the game. This method is called if a client sends a LeaveRequest or disconnects. More...
 
bool SetProperties (int actorNr, Hashtable properties, Hashtable expected, bool broadcast)
 
bool ValidateAndFillSetPropertiesRequest (HivePeer peer, SetPropertiesRequest request, out string errorMsg)
 
virtual void OnGamePropertiesChanged (SetPropertiesRequest request)
 
void PublishResultsAndSetGameProperties (bool propertiesUpdateResult, string errorMessage, SetPropertiesRequest request, HivePeer peer, SendParameters sendParameters)
 
virtual bool SetNewPropertyValues (SetPropertiesRequest request, out string errorMessage)
 
void CheckTotalPropertiesSize (SetPropertiesRequest setPropertiesRequest)
 
virtual bool TryAddPeerToGame (HivePeer peer, int actorNr, out Actor actor, out bool isNewActor, out ErrorCode errorcode, out string reason, JoinGameRequest joinRequest)
 Tries to add a HivePeer to this game instance. More...
 
bool UpdateEventCache (int actorNr, byte eventCode, object data, byte cacheOp, out string msg)
 
bool UpdateCacheSlice (CacheOperation op, int actorNr, int? sliceIndex, out string message)
 
virtual void OnGameFull (HivePeer peer, JoinGameRequest joinGameRequest, SendParameters sendParameters)
 
- Protected Member Functions inherited from Photon.Hive.Room
 Room (string name, ExtendedPoolFiber executionFiber, RoomCacheBase roomCache, IGameStateFactory gameStateFactory=null, int maxEmptyRoomTTL=0)
 Initializes a new instance of the Room class. More...
 
void PublishEvent (HiveEventBase e, Actor actor, SendParameters sendParameters)
 Publishes an event to a single actor on a specified channel. More...
 
void PublishEvent (HiveEventBase e, IEnumerable< Actor > actorList, SendParameters sendParameters)
 Publishes an event to a list of actors on a specified channel. More...
 
void PublishEvent (EventData e, IEnumerable< Actor > actorList, SendParameters sendParameters)
 Publishes an event to a list of actors on a specified channel. More...
 
void PublishErrorInfoEvent (string errorMsg, IEnumerable< Actor > actorList, SendParameters sendParameters)
 
void ScheduleRoomRemoval (int roomLiveTime)
 Schedules the removal of the room instance from the cache. The room will be removed after the specified time if there are no room references left. More...
 
void TryRemoveRoomFromCache ()
 Removes the room instance from the cache if there are no references to the instance left. More...
 

Static Protected Member Functions

static string GetCallStack ()
 

Protected Attributes

CallEnv callEnv
 
- Protected Attributes inherited from Photon.Hive.HiveGame
readonly LogQueue LogQueue
 
IHiveGameAppCounters gameAppCounters = NullHiveGameAppCounters.Instance
 
IEnumerable< ActorInactiveActors => this.ActorsManager.InactiveActors
 
IEnumerable< ActorActiveActors => this.ActorsManager.ActiveActors
 
GroupManager GroupManager => this.RoomState.GroupManager
 
GameState RoomState => this.roomState
 
- Protected Attributes inherited from Photon.Hive.Room
readonly RoomCacheBase roomCache
 
readonly IGameStateFactory gameStateFactory
 
string RemoveRoomPathString
 
DateTime removalStartTimestamp = DateTime.MinValue
 
GameState roomState
 

Properties

Dictionary< string, object > Environment [get, set]
 
int HttpForwardedOperationsLimit [get, protected set]
 
bool FailedOnCreate [get]
 
object this[object key] [get, set]
 
- Properties inherited from Photon.Hive.HiveGame
IHiveGameAppCounters GameAppCounters [get, set]
 
int MasterClientId [get]
 
bool IsOpen [get, set]
 
bool IsVisible [get, set]
 
bool IsFinished [get, set]
 whether finished. it is not same as IsOpen == false. More...
 
string LobbyId [get, set]
 
bool DeleteCacheOnLeave [get, set]
 Gets or sets a value indicating whether cached events are automatically deleted for actors which are leaving a room. More...
 
HashSet< object > LobbyProperties [get, set]
 Contains the keys of the game properties hashtable which should be listed in the lobby. More...
 
AppLobbyType LobbyType [get, set]
 
byte MaxPlayers [get, set]
 
int PlayerTTL [get, set]
 Player live time More...
 
bool SuppressRoomEvents [get, set]
 Gets or sets a value indicating if common room events (Join, Leave) will suppressed. More...
 
bool SuppressPlayerInfo [get, set]
 
bool CheckUserOnJoin [get, set]
 
int LimitMaxPropertiesSizePerGame = 0 [get, set]
 
- Properties inherited from Photon.Hive.Room
RemoveState RemoveRoomPath [get, set]
 
ExtendedPoolFiber ExecutionFiber [get]
 Gets a PoolFiber instance used to synchronize access to this instance. More...
 
bool IsDisposed [get]
 Gets a value indicating whether IsDisposed. More...
 
string Name [get]
 Gets the name (id) of the room. More...
 
int EmptyRoomLiveTime [get, protected set]
 Gets or sets a value indicating how long the room instance will be keeped alive in the room cache after all peers have left the room. More...
 
int MaxEmptyRoomTTL [get]
 
DateTime UtcCreated [get]
 
long RoomCreationTS [get]
 
IDisposable RemoveTimer [get, set]
 Timer for removing room More...
 
PropertyBag< object > Properties [get]
 Gets a PropertyBag instance used to store custom room properties. More...
 
- Properties inherited from Photon.Hive.Plugin.IPluginHost
Dictionary< string, object > Environment [get]
 Should contain game and application global properties (AppId, AppVersion, Cloud, Region, etc.) More...
 
IList< IActorGameActors [get]
 List of all actors in game - including active and inactive. With each actor having a flag IsInactive IActor. More...
 
IList< IActorGameActorsActive [get]
 List of active actors in game. More...
 
IList< IActorGameActorsInactive [get]
 List of inactive active actors in game. More...
 
string GameId [get]
 Unique game identifier. Called Roomname in most client sdk's. More...
 
Hashtable GameProperties [get]
 Game properties as set through the client per RoomOptions.CustomRoomProperties. More...
 
Dictionary< string, object > CustomGameProperties [get]
 The game properties that are published to the lobby - as defined by clients per RoomOptions.CustomRoomPropertiesForLobby. More...
 
int MasterClientId [get]
 The actor number of the client defined as master. If the client disconnects a new master client will be selected by photon. Changes in the master client id are notified per PluginBase.OnChangeMasterClientId. More...
 
bool IsSuspended [get]
 
bool IsSyspended [get]
 
- Properties inherited from Photon.Common.Plugins.IPluginHttpUtilClient
IExtendedFiber ExecutionFiber [get]
 
ILogger Log [get]
 
HttpRequestQueue HttpRequestQueue [get]
 
int HttpQueueRequestTimeout [get]
 

Additional Inherited Members

- Protected Types inherited from Photon.Hive.Room
enum  RemoveState {
  RemoveState.Alive, RemoveState.TryRemoveRoomFromCacheCalled, RemoveState.RoomRemoved, RemoveState.TryRemoveRoomFromCacheCalledRoomNotRemoved,
  RemoveState.ProcessCloseGameCalled, RemoveState.TriggerPluginOnCloseCalled, RemoveState.AliveGotNewPlayer, RemoveState.ScheduleTriggerPluginOnCloseCalled,
  RemoveState.ProcessBeforeCloseGameCalled, RemoveState.ProcessBeforeCloseGameCalledEmptyRoomLiveTimeLECalled, RemoveState.BeforeRemoveFromCacheCalled, RemoveState.BeforeRemoveFromCacheActionCalled,
  RemoveState.GameDisposeCalled
}
 
- Static Protected Attributes inherited from Photon.Hive.HiveGame
static readonly string[] EmptyStringArray = {}
 

Constructor & Destructor Documentation

◆ HiveHostGame()

Photon.Hive.HiveHostGame.HiveHostGame ( GameCreateOptions  gameCreateOptions)
inline

Member Function Documentation

◆ BeforeRemoveFromCache()

override bool Photon.Hive.HiveHostGame.BeforeRemoveFromCache ( )
inlinevirtual

Called by the RoomCacheBase if the room is about to be removed from the cache.

Returns
True if the room should be automaticly by removed by the RoomCacheBase. False if the room has an custom remove implementation and will remove itself from the cache.

The default implementation checks if the EmptyRoomLiveTime value is set to a value greater zero. If it's set the method will return false to indicate that the cache should not remove this instance automaticly. The removal of the room is then scheduled using the ExecutionFiber.

Reimplemented from Photon.Hive.Room.

◆ Dispose()

override void Photon.Hive.HiveHostGame.Dispose ( bool  dispose)
inlineprotectedvirtual

Releases unmanaged and - optionally - managed resources

Parameters
disposetrue to release both managed and unmanaged resources; false to release only unmanaged resources.

Reimplemented from Photon.Hive.Room.

◆ ExecuteCacheOperation()

bool Photon.Hive.HiveHostGame.ExecuteCacheOperation ( CacheOp  operation,
out string  errorMsg 
)
inline

this methods allows to execute any cache operation. it can not be used to send user events to send user events use BroadcastEvent

Parameters
operationset of parameters to perform operation
errorMsgerror message if any
Returns
true in case of success. false otherwise

Implements Photon.Hive.Plugin.IPluginHost.

◆ GetCallStack()

static string Photon.Hive.HiveHostGame.GetCallStack ( )
inlinestaticprotected

◆ GetGameState()

Dictionary<string, object> Photon.Hive.HiveHostGame.GetGameState ( )
inline

◆ GetGameStateAsByteArray()

Dictionary<byte, byte[]> Photon.Hive.HiveHostGame.GetGameStateAsByteArray ( )
inline

◆ GetSerializableGameState()

SerializableGameState Photon.Hive.HiveHostGame.GetSerializableGameState ( )
inline

The serializable game state can be used to recreate the room after it gets removed from memory. Also SetGameState.

Returns
a serializable game state

Implements Photon.Hive.Plugin.IPluginHost.

◆ GetUserJoinResponse()

override OperationResponse Photon.Hive.HiveHostGame.GetUserJoinResponse ( JoinGameRequest  joinRequest,
Actor  actor,
ProcessJoinParams  prms 
)
inlineprotectedvirtual

Reimplemented from Photon.Hive.HiveGame.

◆ HandleCreateGameOperation()

override void Photon.Hive.HiveHostGame.HandleCreateGameOperation ( HivePeer  peer,
SendParameters  sendParameters,
JoinGameRequest  createGameRequest 
)
inlineprotectedvirtual

Implements Photon.Hive.HiveGame.

◆ HandleJoinGameOperation()

override void Photon.Hive.HiveHostGame.HandleJoinGameOperation ( HivePeer  peer,
SendParameters  sendParameters,
JoinGameRequest  joinGameRequest 
)
inlineprotectedvirtual

Handles the JoinGameRequest: Joins a peer to a room and calls PublishJoinEvent. Before a JoinOperation reaches this point (inside a room), the HivePeer made sure that it is removed from the previous Room (if there was any).

Parameters
peerThe peer.
sendParametersThe send Parameters.
joinGameRequestThe join Game Request.

Implements Photon.Hive.HiveGame.

◆ HandleLeaveOperation()

override void Photon.Hive.HiveHostGame.HandleLeaveOperation ( HivePeer  peer,
SendParameters  sendParameters,
LeaveRequest  leaveOperation 
)
inlineprotectedvirtual

Handles the LeaveRequest and calls HiveGame.RemovePeerFromGame.

Parameters
peerThe peer.
sendParametersThe send Parameters.
leaveOperationThe leave Operation.

Implements Photon.Hive.HiveGame.

◆ HandleRaiseEventOperation()

override void Photon.Hive.HiveHostGame.HandleRaiseEventOperation ( HivePeer  peer,
RaiseEventRequest  raiseEventRequest,
SendParameters  sendParameters 
)
inlineprotectedvirtual

Handles the RaiseEventRequest: Sends a CustomEvent to actors in the room.

Parameters
peerThe peer.
raiseEventRequestThe operation
sendParametersThe send Parameters.

Implements Photon.Hive.HiveGame.

◆ HandleRemovePeerMessage()

override void Photon.Hive.HiveHostGame.HandleRemovePeerMessage ( HivePeer  peer,
int  reason,
string  details 
)
inlineprotectedvirtual

Implements Photon.Hive.HiveGame.

◆ HandleSetPropertiesOperation()

override void Photon.Hive.HiveHostGame.HandleSetPropertiesOperation ( HivePeer  peer,
SetPropertiesRequest  request,
SendParameters  sendParameters 
)
inlineprotectedvirtual

Handles the SetPropertiesRequest and sends event PropertiesChangedEvent to all Actors in the room.

Parameters
peerThe peer.
requestThe SetPropertiesRequest operation to handle.
sendParametersThe send Parameters.

Implements Photon.Hive.HiveGame.

◆ HttpErrorsIncrement()

void Photon.Hive.HiveHostGame.HttpErrorsIncrement ( )
inline

◆ HttpQueueBackedoffRequestsDecrement()

void Photon.Hive.HiveHostGame.HttpQueueBackedoffRequestsDecrement ( )
inline

◆ HttpQueueBackedoffRequestsIncrement()

void Photon.Hive.HiveHostGame.HttpQueueBackedoffRequestsIncrement ( )
inline

◆ HttpQueueConcurrentRequestsDecrement()

void Photon.Hive.HiveHostGame.HttpQueueConcurrentRequestsDecrement ( )
inline

◆ HttpQueueConcurrentRequestsIncrement()

void Photon.Hive.HiveHostGame.HttpQueueConcurrentRequestsIncrement ( )
inline

◆ HttpQueueErrorsIncrement()

void Photon.Hive.HiveHostGame.HttpQueueErrorsIncrement ( )
inline

◆ HttpQueueOfflineResponsesIncrement()

void Photon.Hive.HiveHostGame.HttpQueueOfflineResponsesIncrement ( )
inline

◆ HttpQueueOnlineQueueCounterDecrement()

void Photon.Hive.HiveHostGame.HttpQueueOnlineQueueCounterDecrement ( )
inline

◆ HttpQueueOnlineQueueCounterIncrement()

void Photon.Hive.HiveHostGame.HttpQueueOnlineQueueCounterIncrement ( )
inline

◆ HttpQueueQueuedRequestsDecrement()

void Photon.Hive.HiveHostGame.HttpQueueQueuedRequestsDecrement ( )
inline

◆ HttpQueueQueuedRequestsIncrement()

void Photon.Hive.HiveHostGame.HttpQueueQueuedRequestsIncrement ( )
inline

◆ HttpQueueRequestsIncrement()

void Photon.Hive.HiveHostGame.HttpQueueRequestsIncrement ( )
inline

◆ HttpQueueResponsesIncrement()

void Photon.Hive.HiveHostGame.HttpQueueResponsesIncrement ( )
inline

◆ HttpQueueSuccessIncrement()

void Photon.Hive.HiveHostGame.HttpQueueSuccessIncrement ( )
inline

◆ HttpQueueTimeoutIncrement()

void Photon.Hive.HiveHostGame.HttpQueueTimeoutIncrement ( )
inline

◆ HttpRequestExecuteTimeIncrement()

void Photon.Hive.HiveHostGame.HttpRequestExecuteTimeIncrement ( long  ticks)
inline

◆ HttpRequestIncrement()

void Photon.Hive.HiveHostGame.HttpRequestIncrement ( )
inline

◆ HttpResponseIncrement()

void Photon.Hive.HiveHostGame.HttpResponseIncrement ( )
inline

◆ HttpSuccessIncrement()

void Photon.Hive.HiveHostGame.HttpSuccessIncrement ( )
inline

◆ HttpTimeoutIncrement()

void Photon.Hive.HiveHostGame.HttpTimeoutIncrement ( )
inline

◆ InitPlugin()

void Photon.Hive.HiveHostGame.InitPlugin ( string  pluginName)
inlineprotected

◆ JoinFailureHandler()

override void Photon.Hive.HiveHostGame.JoinFailureHandler ( byte  leaveReason,
HivePeer  peer,
JoinGameRequest  request 
)
inlineprotectedvirtual

Reimplemented from Photon.Hive.HiveGame.

◆ OnActorBanned()

virtual void Photon.Hive.HiveHostGame.OnActorBanned ( Actor  actor)
inlineprotectedvirtual

◆ OnActorGlobalBanned()

virtual void Photon.Hive.HiveHostGame.OnActorGlobalBanned ( Actor  actor)
inlineprotectedvirtual

◆ OnUnknownType()

bool Photon.Hive.HiveHostGame.OnUnknownType ( Type  type,
ref object  obj 
)
inline

◆ ProcessBeforeCloseGame()

virtual bool Photon.Hive.HiveHostGame.ProcessBeforeCloseGame ( CloseRequest  request)
inlineprotectedvirtual

◆ ProcessBeforeJoinGame()

virtual bool Photon.Hive.HiveHostGame.ProcessBeforeJoinGame ( JoinGameRequest  joinRequest,
SendParameters  sendParameters,
HivePeer  peer 
)
inlineprotectedvirtual

◆ ProcessBeforeSetProperties()

virtual bool Photon.Hive.HiveHostGame.ProcessBeforeSetProperties ( HivePeer  peer,
SetPropertiesRequest  request,
SendParameters  sendParameters 
)
inlineprotectedvirtual

◆ ProcessCloseGame()

virtual bool Photon.Hive.HiveHostGame.ProcessCloseGame ( object  state)
inlineprotectedvirtual

◆ ProcessCreateGame()

virtual bool Photon.Hive.HiveHostGame.ProcessCreateGame ( HivePeer  peer,
JoinGameRequest  joinRequest,
SendParameters  sendParameters 
)
inlineprotectedvirtual

◆ ProcessJoin()

virtual bool Photon.Hive.HiveHostGame.ProcessJoin ( Actor  actor,
JoinGameRequest  joinRequest,
SendParameters  sendParameters,
ProcessJoinParams  prms,
HivePeer  peer 
)
inlineprotectedvirtual

◆ ProcessLeaveGame()

virtual bool Photon.Hive.HiveHostGame.ProcessLeaveGame ( int  actorNr,
LeaveRequest  request,
SendParameters  sendParameters,
HivePeer  peer 
)
inlineprotectedvirtual

◆ ProcessRaiseEvent()

virtual bool Photon.Hive.HiveHostGame.ProcessRaiseEvent ( HivePeer  peer,
RaiseEventRequest  raiseEventRequest,
SendParameters  sendParameters,
Actor  actor 
)
inlineprotectedvirtual

◆ ProcessSetProperties()

virtual bool Photon.Hive.HiveHostGame.ProcessSetProperties ( HivePeer  peer,
bool  result,
string  errorMsg,
SetPropertiesRequest  request,
SendParameters  sendParameters 
)
inlineprotectedvirtual

◆ RemoveInactiveActor()

override void Photon.Hive.HiveHostGame.RemoveInactiveActor ( Actor  actor)
inlinevirtual

Reimplemented from Photon.Hive.HiveGame.

◆ ResumeGame()

virtual void Photon.Hive.HiveHostGame.ResumeGame ( Action  resumeAction)
inlineprotectedvirtual

◆ SetGameState()

bool Photon.Hive.HiveHostGame.SetGameState ( Dictionary< string, object >  state)
inline

◆ SuspendGame()

virtual void Photon.Hive.HiveHostGame.SuspendGame ( int  timeout,
Action  timeoutAction 
)
inlineprotectedvirtual

Member Data Documentation

◆ callEnv

CallEnv Photon.Hive.HiveHostGame.callEnv
protected

◆ IsPersistent

override bool Photon.Hive.HiveHostGame.IsPersistent => this.Plugin.IsPersistent

◆ IsSuspended

bool Photon.Hive.HiveHostGame.IsSuspended => this.ExecutionFiber.IsPaused

◆ IsSyspended

bool Photon.Hive.HiveHostGame.IsSyspended => this.IsSuspended

◆ Plugin

IGamePlugin Photon.Hive.HiveHostGame.Plugin => this.pluginWrapper

◆ PluginInstance

IPluginInstance Photon.Hive.HiveHostGame.PluginInstance => this.pluginWrapper.PluginInstance

Property Documentation

◆ Environment

Dictionary<string, object> Photon.Hive.HiveHostGame.Environment
getset

◆ FailedOnCreate

bool Photon.Hive.HiveHostGame.FailedOnCreate
getprotected

◆ HttpForwardedOperationsLimit

int Photon.Hive.HiveHostGame.HttpForwardedOperationsLimit
getprotected set

◆ this[object key]

object Photon.Hive.HiveHostGame.this[object key]
getset