Photon Unity Networking 2  v2.1
English | 日本語 | 한국
Public Attributes | List of all members
OperationCode Class Reference

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

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

const byte Authenticate = 230

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

const byte AuthenticateOnce = 231

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

const byte ChangeGroups = (byte)248

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

const byte CreateGame = 227

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

const byte FindFriends = 222

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

const byte GetGameList = 217

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

const byte GetLobbyStats = 221

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

const byte GetProperties = (byte)251

(251) Get Properties

const byte GetRegions = 220

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

const byte Join = 255

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

const byte JoinGame = 226

(226) Join game (by name)

const byte JoinLobby = 229

(229) Joins lobby (on master)

const byte JoinRandomGame = 225

(225) Joins random game (on master)

const byte Leave = (byte)254

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

const byte LeaveLobby = 228

(228) Leaves lobby (on master)

const byte RaiseEvent = (byte)253

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

const byte ServerSettings = 218

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

const byte SetProperties = (byte)252

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

const byte WebRpc = 219

(219) WebRpc Operation.