-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCodeLookup.cs
58 lines (54 loc) · 2.28 KB
/
CodeLookup.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
namespace TurnbasedConsole
{
using ExitGames.Client.Photon.LoadBalancing;
using ExitGames.Client.Photon.Lite;
using System.Collections.Generic;
public static class OperationCodeLookup
{
public static Dictionary<byte, string> NameOf = new Dictionary<byte, string>
{
{ OperationCode.Authenticate, "Authenticate" },
{ OperationCode.ChangeGroups, "ChangeGroups" },
{ OperationCode.CreateGame, "CreateGame" },
{ OperationCode.FindFriends, "FindFriends" },
{ OperationCode.GetProperties, "GetProperties" },
{ OperationCode.GetRegions, "GetRegions" },
{ OperationCode.JoinGame, "JoinGame" },
{ OperationCode.JoinLobby, "JoinLobby" },
{ OperationCode.JoinRandomGame, "JoinRandomGame" },
{ OperationCode.Leave, "Leave" },
{ OperationCode.LeaveLobby, "LeaveLobby" },
{ OperationCode.RaiseEvent, "RaiseEvent" },
{ OperationCode.Rpc, "Rpc" },
{ OperationCode.SetProperties, "SetProperties" },
};
}
public static class EventCodeLookup
{
public static Dictionary<byte, string> NameOf = new Dictionary<byte, string>
{
{ EventCode.AppStats, "AppStats" },
{ EventCode.AzureNodeInfo, "AzureNodeInfo" },
{ EventCode.Disconnect, "Disconnect" },
{ EventCode.GameList, "GameList" },
{ EventCode.GameListUpdate, "GameListUpdate" },
{ EventCode.Join, "Join" },
{ EventCode.Leave, "Leave" },
{ EventCode.Match, "Match" },
{ EventCode.PropertiesChanged, "PropertiesChanged" },
{ EventCode.QueueState, "QueueState" },
//{ EventCode.SetProperties, "SetProperties" },
//{ EventCode.TurnbasedLeave, "TurnbasedLeave" },
};
}
public static class LiteEventCodeLookup
{
public static Dictionary<byte, string> NameOf = new Dictionary<byte, string>
{
{ LiteEventCode.Disconnect, "Disconnect" },
{ LiteEventCode.Join, "Join" },
{ LiteEventCode.Leave, "Leave" },
{ LiteEventCode.PropertiesChanged, "PropertiesChanged" },
};
}
}