Photon Unity Networking v1.101

Classes | Enumerations
Enums.cs File Reference

Wraps up several of the commonly used enumerations. More...

Classes

class  EncryptionDataParameters
 

Enumerations

enum  PhotonNetworkingMessage {
  PhotonNetworkingMessage.OnConnectedToPhoton, PhotonNetworkingMessage.OnLeftRoom, PhotonNetworkingMessage.OnMasterClientSwitched, PhotonNetworkingMessage.OnPhotonCreateRoomFailed,
  PhotonNetworkingMessage.OnPhotonJoinRoomFailed, PhotonNetworkingMessage.OnCreatedRoom, PhotonNetworkingMessage.OnJoinedLobby, PhotonNetworkingMessage.OnLeftLobby,
  PhotonNetworkingMessage.OnDisconnectedFromPhoton, PhotonNetworkingMessage.OnConnectionFail, PhotonNetworkingMessage.OnFailedToConnectToPhoton, PhotonNetworkingMessage.OnReceivedRoomListUpdate,
  PhotonNetworkingMessage.OnJoinedRoom, PhotonNetworkingMessage.OnPhotonPlayerConnected, PhotonNetworkingMessage.OnPhotonPlayerDisconnected, PhotonNetworkingMessage.OnPhotonRandomJoinFailed,
  PhotonNetworkingMessage.OnConnectedToMaster, PhotonNetworkingMessage.OnPhotonSerializeView, PhotonNetworkingMessage.OnPhotonInstantiate, PhotonNetworkingMessage.OnPhotonMaxCccuReached,
  PhotonNetworkingMessage.OnPhotonCustomRoomPropertiesChanged, PhotonNetworkingMessage.OnPhotonPlayerPropertiesChanged, PhotonNetworkingMessage.OnUpdatedFriendList, PhotonNetworkingMessage.OnCustomAuthenticationFailed,
  PhotonNetworkingMessage.OnCustomAuthenticationResponse, PhotonNetworkingMessage.OnWebRpcResponse, PhotonNetworkingMessage.OnOwnershipRequest, PhotonNetworkingMessage.OnLobbyStatisticsUpdate,
  PhotonNetworkingMessage.OnPhotonPlayerActivityChanged, PhotonNetworkingMessage.OnOwnershipTransfered
}
 This enum defines the set of MonoMessages Photon Unity Networking is using as callbacks. Implemented by PunBehaviour. More...
 
enum  PhotonLogLevel { PhotonLogLevel.ErrorsOnly, PhotonLogLevel.Informational, PhotonLogLevel.Full }
 Used to define the level of logging output created by the PUN classes. Either log errors, info (some more) or full. More...
 
enum  PhotonTargets {
  PhotonTargets.All, PhotonTargets.Others, PhotonTargets.MasterClient, PhotonTargets.AllBuffered,
  PhotonTargets.OthersBuffered, PhotonTargets.AllViaServer, PhotonTargets.AllBufferedViaServer
}
 Enum of "target" options for RPCs. These define which remote clients get your RPC call. More...
 
enum  CloudRegionCode {
  CloudRegionCode.eu = 0, CloudRegionCode.us = 1, CloudRegionCode.asia = 2, CloudRegionCode.jp = 3,
  CloudRegionCode.au = 5, CloudRegionCode.usw = 6, CloudRegionCode.sa = 7, CloudRegionCode.cae = 8,
  CloudRegionCode.kr = 9, CloudRegionCode.in = 10, CloudRegionCode.ru = 11, CloudRegionCode.rue = 12,
  CloudRegionCode.none = 4
}
 Currently available Photon Cloud regions as enum. More...
 
enum  CloudRegionFlag {
  CloudRegionFlag.eu = 1 << 0, CloudRegionFlag.us = 1 << 1, CloudRegionFlag.asia = 1 << 2, CloudRegionFlag.jp = 1 << 3,
  CloudRegionFlag.au = 1 << 4, CloudRegionFlag.usw = 1 << 5, CloudRegionFlag.sa = 1 << 6, CloudRegionFlag.cae = 1 << 7,
  CloudRegionFlag.kr = 1 << 8, CloudRegionFlag.in = 1 << 9, CloudRegionFlag.ru = 1 << 10, CloudRegionFlag.rue = 1 << 11
}
 Available regions as enum of flags. To be used as "enabled" flags for Best Region pinging. More...
 
enum  ConnectionState {
  ConnectionState.Disconnected, ConnectionState.Connecting, ConnectionState.Connected, ConnectionState.Disconnecting,
  ConnectionState.InitializingApplication
}
 High level connection state of the client. Better use the more detailed ClientState. More...
 
enum  EncryptionMode { EncryptionMode.PayloadEncryption, EncryptionMode.DatagramEncryption = 10 }
 Defines how the communication gets encrypted. More...
 

Detailed Description

Wraps up several of the commonly used enumerations.

Enumeration Type Documentation

◆ CloudRegionCode

enum CloudRegionCode
strong

Currently available Photon Cloud regions as enum.

This is used in PhotonNetwork.ConnectToRegion.

Enumerator
eu 

European servers in Amsterdam.

us 

US servers (East Coast).

asia 

Asian servers in Singapore.

jp 

Japanese servers in Tokyo.

au 

Australian servers in Melbourne.

summary>USA West, San José, usw

usw 

summary>South America, Sao Paulo, sa

sa 

summary>Canada East, Montreal, cae

cae 

summary>South Korea, Seoul, kr

kr 

summary>India, Chennai, in

in 
ru 

Russia, ru

rue 

Russia East, rue

none 

No region selected.

◆ CloudRegionFlag

enum CloudRegionFlag
strong

Available regions as enum of flags. To be used as "enabled" flags for Best Region pinging.

Note that these enum values skip CloudRegionCode.none and their values are in strict order (power of 2).

Enumerator
eu 
us 
asia 
jp 
au 
usw 
sa 
cae 
kr 
in 
ru 
rue 

◆ ConnectionState

enum ConnectionState
strong

High level connection state of the client. Better use the more detailed ClientState.

Enumerator
Disconnected 
Connecting 
Connected 
Disconnecting 
InitializingApplication 

◆ EncryptionMode

enum EncryptionMode
strong

Defines how the communication gets encrypted.

Enumerator
PayloadEncryption 

This is the default encryption mode: Messages get encrypted only on demand (when you send operations with the "encrypt" parameter set to true).

DatagramEncryption 

With this encryption mode for UDP, the connection gets setup and all further datagrams get encrypted almost entirely. On-demand message encryption (like in PayloadEncryption) is skipped.

This mode requires AuthOnce or AuthOnceWss as AuthMode!