Photon Unity Networking v1.101

Static Public Attributes | List of all members
OperationCode Class Reference

Class for constants. Contains operation codes. Pun uses these constants internally. More...

Static Public Attributes

const byte ExchangeKeysForEncryption = 250
 
const byte Join = 255
 (255) Code for OpJoin, to get into a room. More...
 
const byte AuthenticateOnce = 231
 (231) Authenticates this peer and connects to a virtual application More...
 
const byte Authenticate = 230
 (230) Authenticates this peer and connects to a virtual application More...
 
const byte JoinLobby = 229
 (229) Joins lobby (on master) More...
 
const byte LeaveLobby = 228
 (228) Leaves lobby (on master) More...
 
const byte CreateGame = 227
 (227) Creates a game (or fails if name exists) More...
 
const byte JoinGame = 226
 (226) Join game (by name) More...
 
const byte JoinRandomGame = 225
 (225) Joins random game (on master) More...
 
const byte Leave = (byte)254
 (254) Code for OpLeave, to get out of a room. More...
 
const byte RaiseEvent = (byte)253
 (253) Raise event (in a room, for other actors/players) More...
 
const byte SetProperties = (byte)252
 (252) Set Properties (of room or actor/player) More...
 
const byte GetProperties = (byte)251
 (251) Get Properties More...
 
const byte ChangeGroups = (byte)248
 (248) Operation code to change interest groups in Rooms (Lite application and extending ones). More...
 
const byte FindFriends = 222
 (222) Request the rooms and online status for a list of friends (by name, which should be unique). More...
 
const byte GetLobbyStats = 221
 (221) Request statistics about a specific list of lobbies (their user and game count). More...
 
const byte GetRegions = 220
 (220) Get list of regional servers from a NameServer. More...
 
const byte WebRpc = 219
 (219) WebRpc Operation. More...
 
const byte ServerSettings = 218
 (218) Operation to set some server settings. Used with different parameters on various servers. More...
 
const byte GetGameList = 217
 (217) Get the game list matching a supplied sql filter (SqlListLobby only) More...
 

Detailed Description

Class for constants. Contains operation codes. Pun uses these constants internally.

Member Data Documentation

◆ Authenticate

const byte OperationCode.Authenticate = 230
static

(230) Authenticates this peer and connects to a virtual application

◆ AuthenticateOnce

const byte OperationCode.AuthenticateOnce = 231
static

(231) Authenticates this peer and connects to a virtual application

◆ ChangeGroups

const byte OperationCode.ChangeGroups = (byte)248
static

(248) Operation code to change interest groups in Rooms (Lite application and extending ones).

◆ CreateGame

const byte OperationCode.CreateGame = 227
static

(227) Creates a game (or fails if name exists)

◆ ExchangeKeysForEncryption

const byte OperationCode.ExchangeKeysForEncryption = 250
static

◆ FindFriends

const byte OperationCode.FindFriends = 222
static

(222) Request the rooms and online status for a list of friends (by name, which should be unique).

◆ GetGameList

const byte OperationCode.GetGameList = 217
static

(217) Get the game list matching a supplied sql filter (SqlListLobby only)

◆ GetLobbyStats

const byte OperationCode.GetLobbyStats = 221
static

(221) Request statistics about a specific list of lobbies (their user and game count).

◆ GetProperties

const byte OperationCode.GetProperties = (byte)251
static

(251) Get Properties

◆ GetRegions

const byte OperationCode.GetRegions = 220
static

(220) Get list of regional servers from a NameServer.

◆ Join

const byte OperationCode.Join = 255
static

(255) Code for OpJoin, to get into a room.

◆ JoinGame

const byte OperationCode.JoinGame = 226
static

(226) Join game (by name)

◆ JoinLobby

const byte OperationCode.JoinLobby = 229
static

(229) Joins lobby (on master)

◆ JoinRandomGame

const byte OperationCode.JoinRandomGame = 225
static

(225) Joins random game (on master)

◆ Leave

const byte OperationCode.Leave = (byte)254
static

(254) Code for OpLeave, to get out of a room.

◆ LeaveLobby

const byte OperationCode.LeaveLobby = 228
static

(228) Leaves lobby (on master)

◆ RaiseEvent

const byte OperationCode.RaiseEvent = (byte)253
static

(253) Raise event (in a room, for other actors/players)

◆ ServerSettings

const byte OperationCode.ServerSettings = 218
static

(218) Operation to set some server settings. Used with different parameters on various servers.

◆ SetProperties

const byte OperationCode.SetProperties = (byte)252
static

(252) Set Properties (of room or actor/player)

◆ WebRpc

const byte OperationCode.WebRpc = 219
static

(219) WebRpc Operation.