Photon Server API Documentation
v5.0RC1
Classes | |
| class | ExpiryInfo |
Public Member Functions | |
| GameState (AppLobby lobby, string id, byte maxPlayer, GameServerContext gsContext) | |
| Initializes a new instance of the GameState class. More... | |
| GameState (AppLobby lobby, Hashtable data) | |
| void | AddPeer (ILobbyPeer peer) |
| void | CheckJoinTimeOuts (DateTime minDateTime) |
| string | GetUserListsAsString () |
| void | ResetGameServer () |
| string | GetServerAddress (ILobbyPeer peer) |
| bool | MatchGameProperties (Hashtable matchProperties) |
| Hashtable | ToHashTable () |
| bool | TrySetProperties (Hashtable gameProperties, out bool changed, out string debugMessage) |
| bool | SupportsProtocol (NetworkProtocolType networkProtocol) |
| bool | Update (UpdateGameEvent updateEvent) |
| void | AddPlayerToWaitList (MasterClientPeer peer, JoinGameRequest operation) |
| void | OnRemoved () |
| override string | ToString () |
| string | GetDebugData () |
| bool | ContainsUser (string userId) |
| bool | IsUserInExcludeList (string userId) |
| bool | IsUserExpected (string userId) |
| bool | CheckSlots (string userId, string[] expectedUsers) |
| bool | CheckSlots (string userId, string[] expectedUsers, out string errMsg) |
| void | AddSlots (JoinGameRequest request) |
Public Attributes | |
| readonly AppLobby | Lobby |
| bool | ShouldBePreservedInList => this.IsPersistent && this.InactivePlayerCount > 0 && this.Lobby.LobbyType == AppLobbyType.AsyncRandomLobby |
Static Public Attributes | |
| const byte | GameId = 0 |
| const byte | InactiveCountId = 1 |
| const byte | CreateDateId = 2 |
| const byte | UserListId = 3 |
| const byte | PropertiesId = 4 |
| const byte | IsVisibleId = 5 |
| const byte | IsOpenId = 6 |
| const byte | MaxPlayerId = 7 |
| const byte | LobbyNameId = 8 |
| const byte | LobbyTypeId = 9 |
| const byte | InactiveUsersId = 10 |
| const byte | ExcludedUsersId = 11 |
| const byte | ExpectedUsersId = 12 |
Protected Attributes | |
| readonly DateTime | createDateUtc = DateTime.UtcNow |
Properties | |
| DateTime | CreateDateUtc [get] |
| GameServerContext | GameServer [get] |
| Gets the context of the game server on which the game is or should be created. More... | |
| int | GameServerPlayerCount [get] |
| Gets the number of players who joined the game on the game server. More... | |
| string | Id [get] |
| Gets the game id. More... | |
| List< DeferredUser > | WaitList = new List<DeferredUser>() [get] |
| int | InactivePlayerCount [get] |
| bool | HasBeenCreatedOnGameServer [get, set] |
| Gets or sets a value indicating whether the game is created on a game server instance. More... | |
| bool | IsOpen [get, set] |
| Gets or sets a value indicating whether the game is open for players to join the game. More... | |
| bool | IsPersistent [get, set] |
| bool | IsVisbleInLobby [get] |
| Gets a value indicating whether this instance is visble in the lobby. More... | |
| bool | IsVisible [get, set] |
| Gets or sets a value indicating whether the game should be visible to other players. More... | |
| int | JoiningPlayerCount [get] |
| Gets the number of players currently joining the game. More... | |
| byte | MaxPlayer [get, set] |
| Gets or sets the maximum number of player for the game. More... | |
| int | PlayerCount [get] |
| Gets the number of players joined the game. More... | |
| int | YetExpectedUsersCount [get] |
| Dictionary< object, object > | Properties = new Dictionary<object, object>() [get] |
| bool | IsJoinable [get] |
| bool | CheckUserIdOnJoin [get] |
| List< ExcludedActorInfo > | ExcludedActors [get] |
| DataContract | CreateRequest [get, set] |
| bool | ExpectsReplication [get, set] |
|
inline |
Initializes a new instance of the GameState class.
| lobby | The lobby to which the game belongs. |
| id | The game id. |
| maxPlayer | The maximum number of player who can join the game. |
| gsContext | The game server peer. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| readonly AppLobby Photon.LoadBalancing.MasterServer.Lobby.GameState.Lobby |
|
static |
|
static |
|
static |
|
static |
| bool Photon.LoadBalancing.MasterServer.Lobby.GameState.ShouldBePreservedInList => this.IsPersistent && this.InactivePlayerCount > 0 && this.Lobby.LobbyType == AppLobbyType.AsyncRandomLobby |
|
static |
|
get |
|
get |
|
getset |
|
get |
|
getset |
|
get |
Gets the context of the game server on which the game is or should be created.
|
get |
Gets the number of players who joined the game on the game server.
|
getset |
Gets or sets a value indicating whether the game is created on a game server instance.
true if this instance is created on game server; otherwise, false.
|
get |
Gets the game id.
|
get |
|
get |
|
getset |
Gets or sets a value indicating whether the game is open for players to join the game.
true if the game is open; otherwise, false.
|
getset |
|
get |
Gets a value indicating whether this instance is visble in the lobby.
true if this instance is visble in lobby; otherwise, false.
|
getset |
Gets or sets a value indicating whether the game should be visible to other players.
true if the game is visible; otherwise, false.
|
get |
Gets the number of players currently joining the game.
|
getset |
Gets or sets the maximum number of player for the game.
|
get |
Gets the number of players joined the game.
|
get |
|
get |
|
get |