-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathMLAPIConstants.cs
More file actions
66 lines (64 loc) · 2.14 KB
/
MLAPIConstants.cs
File metadata and controls
66 lines (64 loc) · 2.14 KB
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
59
60
61
62
63
64
65
66
namespace MLAPI.Configuration
{
/// <summary>
/// A static class containing MLAPI constants
/// </summary>
internal static class MLAPIConstants
{
internal const string MLAPI_PROTOCOL_VERSION = "13.0.0";
internal const byte MLAPI_CONNECTION_REQUEST = 3;
internal const byte MLAPI_CONNECTION_APPROVED = 4;
internal const byte MLAPI_ADD_OBJECT = 5;
internal const byte MLAPI_DESTROY_OBJECT = 6;
internal const byte MLAPI_SWITCH_SCENE = 7;
internal const byte MLAPI_CLIENT_SWITCH_SCENE_COMPLETED = 8;
internal const byte MLAPI_CHANGE_OWNER = 9;
internal const byte MLAPI_ADD_OBJECTS = 10;
internal const byte MLAPI_TIME_SYNC = 11;
internal const byte MLAPI_NETWORKED_VAR_DELTA = 12;
internal const byte MLAPI_NETWORKED_VAR_UPDATE = 13;
internal const byte MLAPI_UNNAMED_MESSAGE = 20;
internal const byte MLAPI_DESTROY_OBJECTS = 21;
internal const byte MLAPI_NAMED_MESSAGE = 22;
internal const byte MLAPI_SERVER_LOG = 23;
internal const byte MLAPI_SERVER_RPC = 30;
internal const byte MLAPI_CLIENT_RPC = 31;
internal const byte INVALID = 32;
internal static readonly string[] MESSAGE_NAMES =
{
"", // 0
"",
"",
"MLAPI_CONNECTION_REQUEST",
"MLAPI_CONNECTION_APPROVED",
"MLAPI_ADD_OBJECT",
"MLAPI_DESTROY_OBJECT",
"MLAPI_SWITCH_SCENE",
"MLAPI_CLIENT_SWITCH_SCENE_COMPLETED",
"MLAPI_CHANGE_OWNER",
"MLAPI_ADD_OBJECTS",
"MLAPI_TIME_SYNC",
"MLAPI_NETWORKED_VAR_DELTA",
"MLAPI_NETWORKED_VAR_UPDATE",
"",
"",
"", // 16
"",
"",
"",
"MLAPI_UNNAMED_MESSAGE",
"MLAPI_DESTROY_OBJECTS",
"MLAPI_NAMED_MESSAGE",
"MLAPI_SERVER_LOG",
"",
"",
"",
"",
"",
"",
"MLAPI_SERVER_RPC",
"MLAPI_CLIENT_RPC",
"INVALID" // 32
};
}
}