Photon Server API Documentation v5.0RC1

Public Member Functions | Public Attributes | Protected Attributes | Properties | List of all members
Photon.Hive.GameState Class Reference

Public Member Functions

 GameState ()
 
bool SetState (SerializableGameState state)
 
bool SetState (Dictionary< string, object > state)
 
SerializableGameState GetSerializableGameState ()
 
Dictionary< string, object > GetState ()
 

Public Attributes

ActorsManager ActorsManager => this.actorsManager
 

Protected Attributes

ActorsManager actorsManager
 

Properties

PropertyBag< object > Properties [get]
 Gets a PropertyBag instance used to store custom room properties. More...
 
bool IsOpen [get, set]
 
bool IsVisible [get, set]
 
string LobbyId [get, set]
 
HashSet< object > LobbyProperties [get, set]
 Contains the keys of the game properties hashtable which should be listet in the lobby. More...
 
AppLobbyType LobbyType [get, set]
 
byte MaxPlayers [get, set]
 
int PlayerTTL [get, set]
 Player live time More...
 
int EmptyRoomLiveTime [get, set]
 
RoomEventCacheManager EventCache = new RoomEventCacheManager() [get]
 
EventCacheDictionary ActorEventCache = new EventCacheDictionary() [get]
 Contains Caching.EventCaches for all actors. More...
 
GroupManager GroupManager = new GroupManager() [get]
 
int RoomFlags [get, set]
 
bool CheckUserOnJoin [get, set]
 
bool PublishUserId [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...
 
bool SuppressRoomEvents [get, set]
 Gets or sets a value indicating if common room events (Join, Leave) will suppressed. More...
 
bool SuppressPlayerInfo [get, set]
 If this flag is set we do not send any player info during joining to both joiner and active players More...
 
bool BroadcastPropsChangesToAll [get, set]
 

Constructor & Destructor Documentation

◆ GameState()

Photon.Hive.GameState.GameState ( )
inline

Member Function Documentation

◆ GetSerializableGameState()

SerializableGameState Photon.Hive.GameState.GetSerializableGameState ( )
inline

◆ GetState()

Dictionary<string, object> Photon.Hive.GameState.GetState ( )
inline

◆ SetState() [1/2]

bool Photon.Hive.GameState.SetState ( Dictionary< string, object >  state)
inline

◆ SetState() [2/2]

bool Photon.Hive.GameState.SetState ( SerializableGameState  state)
inline

Member Data Documentation

◆ actorsManager

ActorsManager Photon.Hive.GameState.actorsManager
protected

◆ ActorsManager

ActorsManager Photon.Hive.GameState.ActorsManager => this.actorsManager

Property Documentation

◆ ActorEventCache

EventCacheDictionary Photon.Hive.GameState.ActorEventCache = new EventCacheDictionary()
get

Contains Caching.EventCaches for all actors.

◆ BroadcastPropsChangesToAll

bool Photon.Hive.GameState.BroadcastPropsChangesToAll
getset

◆ CheckUserOnJoin

bool Photon.Hive.GameState.CheckUserOnJoin
getset

◆ DeleteCacheOnLeave

bool Photon.Hive.GameState.DeleteCacheOnLeave
getset

Gets or sets a value indicating whether cached events are automatically deleted for actors which are leaving a room.

◆ EmptyRoomLiveTime

int Photon.Hive.GameState.EmptyRoomLiveTime
getset

◆ EventCache

RoomEventCacheManager Photon.Hive.GameState.EventCache = new RoomEventCacheManager()
get

◆ GroupManager

GroupManager Photon.Hive.GameState.GroupManager = new GroupManager()
get

◆ IsOpen

bool Photon.Hive.GameState.IsOpen
getset

◆ IsVisible

bool Photon.Hive.GameState.IsVisible
getset

◆ LobbyId

string Photon.Hive.GameState.LobbyId
getset

◆ LobbyProperties

HashSet<object> Photon.Hive.GameState.LobbyProperties
getset

Contains the keys of the game properties hashtable which should be listet in the lobby.

◆ LobbyType

AppLobbyType Photon.Hive.GameState.LobbyType
getset

◆ MaxPlayers

byte Photon.Hive.GameState.MaxPlayers
getset

◆ PlayerTTL

int Photon.Hive.GameState.PlayerTTL
getset

Player live time

◆ Properties

PropertyBag<object> Photon.Hive.GameState.Properties
get

Gets a PropertyBag instance used to store custom room properties.

◆ PublishUserId

bool Photon.Hive.GameState.PublishUserId
getset

◆ RoomFlags

int Photon.Hive.GameState.RoomFlags
getset

◆ SuppressPlayerInfo

bool Photon.Hive.GameState.SuppressPlayerInfo
getset

If this flag is set we do not send any player info during joining to both joiner and active players

◆ SuppressRoomEvents

bool Photon.Hive.GameState.SuppressRoomEvents
getset

Gets or sets a value indicating if common room events (Join, Leave) will suppressed.