@xmobitea/gn-typescript-client 2.5.2 → 2.5.3-esnext
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -0
- package/dist/index.js +339 -36406
- package/dist/runtime/GNNetwork.d.ts +4 -0
- package/dist/runtime/GNNetwork.js +250 -0
- package/dist/runtime/GNNetworkAuthenticateApi.js +122 -0
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +968 -0
- package/dist/runtime/GNNetworkCloudScriptApi.js +104 -0
- package/dist/runtime/GNNetworkContentApi.js +140 -0
- package/dist/runtime/GNNetworkDashboardApi.js +170 -0
- package/dist/runtime/GNNetworkGamePlayerApi.js +950 -0
- package/dist/runtime/GNNetworkGroupApi.js +734 -0
- package/dist/runtime/GNNetworkInventoryApi.js +626 -0
- package/dist/runtime/GNNetworkMasterPlayerApi.js +1550 -0
- package/dist/runtime/GNNetworkMultiplayerApi.js +194 -0
- package/dist/runtime/GNNetworkStoreInventoryApi.js +266 -0
- package/dist/runtime/common/Action0.js +1 -0
- package/dist/runtime/common/Action1.js +1 -0
- package/dist/runtime/common/Action2.js +1 -0
- package/dist/runtime/common/Action3.js +1 -0
- package/dist/runtime/common/Action4.js +1 -0
- package/dist/runtime/common/GNData.js +211 -0
- package/dist/runtime/config/GNServerSettings.js +135 -0
- package/dist/runtime/constant/Commands.js +19 -0
- package/dist/runtime/constant/EventCode.js +8 -0
- package/dist/runtime/constant/OperationCode.js +221 -0
- package/dist/runtime/constant/ReturnCode.js +14 -0
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +8 -0
- package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
- package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
- package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
- package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
- package/dist/runtime/constant/enumType/ItemType.js +5 -0
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
- package/dist/runtime/constant/enumType/OwnerType.d.ts +2 -1
- package/dist/runtime/constant/enumType/OwnerType.js +9 -0
- package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
- package/dist/runtime/constant/enumType/PushPlatformType.js +5 -0
- package/dist/runtime/constant/enumType/RequestRole.js +6 -0
- package/dist/runtime/constant/enumType/RequestType.js +15 -0
- package/dist/runtime/constant/enumType/StoreItemType.js +5 -0
- package/dist/runtime/constant/enumType/StoreReceiveType.js +8 -0
- package/dist/runtime/constant/errorCode/GNErrorCode.js +52 -0
- package/dist/runtime/constant/parameterCode/GNParameterCode.js +593 -0
- package/dist/runtime/constant/parameterCode/ParameterCode.js +6 -0
- package/dist/runtime/entity/DataMember.js +208 -0
- package/dist/runtime/entity/GNMetadata.js +11 -0
- package/dist/runtime/entity/InvalidMember.js +1 -0
- package/dist/runtime/entity/OperationEvent.js +33 -0
- package/dist/runtime/entity/OperationHelper.js +23 -0
- package/dist/runtime/entity/OperationRequest.js +51 -0
- package/dist/runtime/entity/OperationResponse.js +82 -0
- package/dist/runtime/entity/models/AuthenticateModels.d.ts +1 -1
- package/dist/runtime/entity/models/AuthenticateModels.js +420 -0
- package/dist/runtime/entity/models/AuthenticateRequestModels.js +206 -0
- package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
- package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +1 -0
- package/dist/runtime/entity/models/CharacterPlayerModels.js +1437 -0
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1439 -0
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +376 -0
- package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
- package/dist/runtime/entity/models/CloudScriptRequestModels.js +143 -0
- package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
- package/dist/runtime/entity/models/ContentModels.d.ts +0 -2
- package/dist/runtime/entity/models/ContentModels.js +203 -0
- package/dist/runtime/entity/models/ContentRequestModels.js +197 -0
- package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
- package/dist/runtime/entity/models/DashboardModels.js +2959 -0
- package/dist/runtime/entity/models/DashboardRequestModels.js +294 -0
- package/dist/runtime/entity/models/DashboardResponseModels.js +187 -0
- package/dist/runtime/entity/models/GamePlayerModels.d.ts +1 -0
- package/dist/runtime/entity/models/GamePlayerModels.js +1591 -0
- package/dist/runtime/entity/models/GamePlayerRequestModels.js +1412 -0
- package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
- package/dist/runtime/entity/models/GenericModels.js +177 -0
- package/dist/runtime/entity/models/GroupModels.js +1139 -0
- package/dist/runtime/entity/models/GroupRequestModels.js +1088 -0
- package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
- package/dist/runtime/entity/models/InventoryModels.js +915 -0
- package/dist/runtime/entity/models/InventoryRequestModels.js +926 -0
- package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
- package/dist/runtime/entity/models/MasterPlayerModels.d.ts +1 -1
- package/dist/runtime/entity/models/MasterPlayerModels.js +2570 -0
- package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2314 -0
- package/dist/runtime/entity/models/MasterPlayerResponseModels.js +607 -0
- package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
- package/dist/runtime/entity/models/MultiplayerRequestModels.js +278 -0
- package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
- package/dist/runtime/entity/models/StoreInventoryModels.js +797 -0
- package/dist/runtime/entity/models/StoreInventoryRequestModels.js +386 -0
- package/dist/runtime/entity/models/StoreInventoryResponseModels.js +103 -0
- package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
- package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
- package/dist/runtime/entity/response/GetAuthInfoResponse.js +2 -0
- package/dist/runtime/entity/response/UploadFileResponse.d.ts +3 -0
- package/dist/runtime/entity/response/UploadFileResponse.js +2 -0
- package/dist/runtime/helper/CodeHelper.js +61 -0
- package/dist/runtime/helper/ConverterService.js +275 -0
- package/dist/runtime/helper/GNSupport.js +8 -0
- package/dist/runtime/helper/GNUtils.d.ts +1 -1
- package/dist/runtime/helper/GNUtils.js +72 -0
- package/dist/runtime/helper/MessagePackConverterService.d.ts +4 -0
- package/dist/runtime/helper/MessagePackConverterService.js +9 -0
- package/dist/runtime/logger/GNDebug.js +29 -0
- package/dist/runtime/networking/AuthenticateStatus.js +14 -0
- package/dist/runtime/networking/IPeer.js +1 -0
- package/dist/runtime/networking/NetworkingPeer.d.ts +3 -1
- package/dist/runtime/networking/NetworkingPeer.js +182 -0
- package/dist/runtime/networking/OperationPending.js +53 -0
- package/dist/runtime/networking/PeerBase.js +170 -0
- package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +35 -0
- package/dist/runtime/networking/http/HttpPeer.d.ts +1 -1
- package/dist/runtime/networking/http/HttpPeer.js +124 -0
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +1 -1
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.d.ts +2 -1
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +164 -0
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +0 -1
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +126 -0
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +176 -0
- package/dist/runtime/networking/socket/SocketPeer.js +108 -0
- package/dist/runtime/typescript/ServiceUpdate.js +12 -0
- package/package.json +7 -6
- package/dist/gn.js.client.js +0 -49117
- package/dist/gn.js.client.min.js +0 -2
- package/dist/gn.js.client.min.js.LICENSE.txt +0 -14
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export class GNData {
|
|
2
|
+
get(k, def) {
|
|
3
|
+
return def;
|
|
4
|
+
}
|
|
5
|
+
getBoolean(k, def) {
|
|
6
|
+
return this.get(k, def);
|
|
7
|
+
}
|
|
8
|
+
getObject(k, def) {
|
|
9
|
+
return this.get(k, def);
|
|
10
|
+
}
|
|
11
|
+
getString(k, def) {
|
|
12
|
+
return this.get(k, def);
|
|
13
|
+
}
|
|
14
|
+
getNumber(k, def) {
|
|
15
|
+
return this.get(k, def);
|
|
16
|
+
}
|
|
17
|
+
getGNHashtable(k, def) {
|
|
18
|
+
return this.get(k, def);
|
|
19
|
+
}
|
|
20
|
+
getGNArray(k, def) {
|
|
21
|
+
return this.get(k, def);
|
|
22
|
+
}
|
|
23
|
+
static createGNHashtableFromObject(value) {
|
|
24
|
+
let answer = new GNHashtable();
|
|
25
|
+
let valueKeys = Object.keys(value);
|
|
26
|
+
for (let i = 0; i < valueKeys.length; i++) {
|
|
27
|
+
let key = valueKeys[i];
|
|
28
|
+
answer.add(key, value[key]);
|
|
29
|
+
}
|
|
30
|
+
return answer;
|
|
31
|
+
}
|
|
32
|
+
static createGNArrayFromArray(value) {
|
|
33
|
+
let answer = new GNArray();
|
|
34
|
+
let valueArr = value;
|
|
35
|
+
for (let i = 0; i < valueArr.length; i++) {
|
|
36
|
+
answer.add(valueArr[i]);
|
|
37
|
+
}
|
|
38
|
+
return answer;
|
|
39
|
+
}
|
|
40
|
+
static createUseDataFromOriginData(value) {
|
|
41
|
+
if (value == null)
|
|
42
|
+
return null;
|
|
43
|
+
let typeOfValue = typeof value;
|
|
44
|
+
if (typeOfValue === "string")
|
|
45
|
+
return value;
|
|
46
|
+
if (typeOfValue === "number")
|
|
47
|
+
return value;
|
|
48
|
+
if (typeOfValue === "boolean")
|
|
49
|
+
return value;
|
|
50
|
+
if (value instanceof GNArray)
|
|
51
|
+
return value;
|
|
52
|
+
if (value instanceof GNHashtable)
|
|
53
|
+
return value;
|
|
54
|
+
if (typeOfValue === "object") {
|
|
55
|
+
if (Array.isArray(value))
|
|
56
|
+
return this.createGNArrayFromArray(value);
|
|
57
|
+
else
|
|
58
|
+
return this.createGNHashtableFromObject(value);
|
|
59
|
+
}
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
static createDataFromUseData(value) {
|
|
63
|
+
if (value == null)
|
|
64
|
+
return null;
|
|
65
|
+
if (value instanceof GNArray) {
|
|
66
|
+
return value.toData();
|
|
67
|
+
}
|
|
68
|
+
if (value instanceof GNHashtable) {
|
|
69
|
+
return value.toData();
|
|
70
|
+
}
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class GNHashtableBuilder {
|
|
75
|
+
add(k, value) {
|
|
76
|
+
this.dict[k] = value;
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
addAll(dict) {
|
|
80
|
+
let keys = Object.keys(dict);
|
|
81
|
+
keys.forEach(keyStr => {
|
|
82
|
+
this.add(keyStr, dict[keyStr]);
|
|
83
|
+
});
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
constructor() {
|
|
87
|
+
this.dict = {};
|
|
88
|
+
this.dict = {};
|
|
89
|
+
}
|
|
90
|
+
build() {
|
|
91
|
+
let answer = new GNHashtable();
|
|
92
|
+
let keys = Object.keys(this.dict);
|
|
93
|
+
keys.forEach(keyStr => {
|
|
94
|
+
answer.add(keyStr, this.dict[keyStr]);
|
|
95
|
+
});
|
|
96
|
+
return answer;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
export class GNHashtable extends GNData {
|
|
100
|
+
constructor() {
|
|
101
|
+
super(...arguments);
|
|
102
|
+
this.dict = {};
|
|
103
|
+
}
|
|
104
|
+
clear() {
|
|
105
|
+
this.dict = {};
|
|
106
|
+
}
|
|
107
|
+
remove(k) {
|
|
108
|
+
if (this.containsKey(k)) {
|
|
109
|
+
delete this.dict[k];
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
count() {
|
|
115
|
+
return Object.keys(this.dict).length;
|
|
116
|
+
}
|
|
117
|
+
containsKey(k) {
|
|
118
|
+
let keys = Object.keys(this.dict);
|
|
119
|
+
let kStr = k.toString();
|
|
120
|
+
return keys.indexOf(kStr) != -1;
|
|
121
|
+
}
|
|
122
|
+
get(k, def) {
|
|
123
|
+
let value = this.dict[k];
|
|
124
|
+
if (value == null)
|
|
125
|
+
return def;
|
|
126
|
+
return value;
|
|
127
|
+
}
|
|
128
|
+
add(k, value) {
|
|
129
|
+
this.dict[k] = GNData.createUseDataFromOriginData(value);
|
|
130
|
+
}
|
|
131
|
+
toData() {
|
|
132
|
+
let anwser = {};
|
|
133
|
+
let keys = Object.keys(this.dict);
|
|
134
|
+
for (let i = 0; i < keys.length; i++) {
|
|
135
|
+
let key = keys[i];
|
|
136
|
+
anwser[key] = GNData.createDataFromUseData(this.dict[key]);
|
|
137
|
+
}
|
|
138
|
+
return anwser;
|
|
139
|
+
}
|
|
140
|
+
static builder() {
|
|
141
|
+
return new GNHashtableBuilder();
|
|
142
|
+
}
|
|
143
|
+
toString() {
|
|
144
|
+
return JSON.stringify(this.dict);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
export class GNArrayBuilder {
|
|
148
|
+
add(value) {
|
|
149
|
+
this.array.push(value);
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
addAll(array) {
|
|
153
|
+
array.forEach(o => {
|
|
154
|
+
this.add(o);
|
|
155
|
+
});
|
|
156
|
+
return this;
|
|
157
|
+
}
|
|
158
|
+
build() {
|
|
159
|
+
let awnser = new GNArray();
|
|
160
|
+
this.array.forEach(o => {
|
|
161
|
+
awnser.add(o);
|
|
162
|
+
});
|
|
163
|
+
return awnser;
|
|
164
|
+
}
|
|
165
|
+
constructor() {
|
|
166
|
+
this.array = [];
|
|
167
|
+
this.array = [];
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
export class GNArray extends GNData {
|
|
171
|
+
constructor() {
|
|
172
|
+
super(...arguments);
|
|
173
|
+
this.array = [];
|
|
174
|
+
}
|
|
175
|
+
clear() {
|
|
176
|
+
this.array = [];
|
|
177
|
+
}
|
|
178
|
+
remove(k) {
|
|
179
|
+
if (k < 0 || k >= this.array.length)
|
|
180
|
+
return false;
|
|
181
|
+
this.array.splice(k, 1);
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
count() {
|
|
185
|
+
return this.array.length;
|
|
186
|
+
}
|
|
187
|
+
get(k, def) {
|
|
188
|
+
if (k < 0 || k >= this.array.length)
|
|
189
|
+
return null;
|
|
190
|
+
let value = this.array[k];
|
|
191
|
+
if (value == null)
|
|
192
|
+
return def;
|
|
193
|
+
return value;
|
|
194
|
+
}
|
|
195
|
+
add(value) {
|
|
196
|
+
this.array.push(GNData.createUseDataFromOriginData(value));
|
|
197
|
+
}
|
|
198
|
+
toData() {
|
|
199
|
+
let anwser = [];
|
|
200
|
+
for (let i = 0; i < this.array.length; i++) {
|
|
201
|
+
anwser.push(GNData.createDataFromUseData(this.array[i]));
|
|
202
|
+
}
|
|
203
|
+
return anwser;
|
|
204
|
+
}
|
|
205
|
+
static builder() {
|
|
206
|
+
return new GNArrayBuilder();
|
|
207
|
+
}
|
|
208
|
+
toString() {
|
|
209
|
+
return JSON.stringify(this.array);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { LogType } from "./../logger/GNDebug";
|
|
2
|
+
export class GNServerSettings {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.serverAddress = "127.0.0.1";
|
|
5
|
+
this.serverPort = 2202;
|
|
6
|
+
this.serverSocketPort = 2901;
|
|
7
|
+
this.useSsl = false;
|
|
8
|
+
this.useSocket = true;
|
|
9
|
+
this.useHttp = true;
|
|
10
|
+
this.sendRate = 20;
|
|
11
|
+
this.reconnectDelay = 5000;
|
|
12
|
+
this.pingInterval = 20000;
|
|
13
|
+
this.pingTimeout = 20000;
|
|
14
|
+
this.logType = LogType.All;
|
|
15
|
+
}
|
|
16
|
+
config(options) {
|
|
17
|
+
this.serverAddress = options.serverAddress;
|
|
18
|
+
this.serverPort = options.serverPort;
|
|
19
|
+
this.serverSocketPort = options.serverSocketPort;
|
|
20
|
+
this.useSsl = options.useSsl;
|
|
21
|
+
this.useSocket = options.useSocket;
|
|
22
|
+
this.useHttp = options.useHttp;
|
|
23
|
+
this.sendRate = options.sendRate;
|
|
24
|
+
this.reconnectDelay = options.reconnectDelay;
|
|
25
|
+
this.pingInterval = options.pingInterval;
|
|
26
|
+
this.pingTimeout = options.pingTimeout;
|
|
27
|
+
this.adminSecretKey = options.adminSecretKey;
|
|
28
|
+
this.serverSecretKey = options.serverSecretKey;
|
|
29
|
+
this.clientSecretKey = options.clientSecretKey;
|
|
30
|
+
this.gnServerSourcePath = options.gnServerSourcePath;
|
|
31
|
+
this.logType = options.logType;
|
|
32
|
+
}
|
|
33
|
+
getServerAddress() {
|
|
34
|
+
return this.serverAddress;
|
|
35
|
+
}
|
|
36
|
+
setServerAddress(serverAddress) {
|
|
37
|
+
this.serverAddress = serverAddress;
|
|
38
|
+
}
|
|
39
|
+
getServerPort() {
|
|
40
|
+
return this.serverPort;
|
|
41
|
+
}
|
|
42
|
+
setServerPort(serverPort) {
|
|
43
|
+
this.serverPort = serverPort;
|
|
44
|
+
}
|
|
45
|
+
getServerSocketPort() {
|
|
46
|
+
return this.serverSocketPort;
|
|
47
|
+
}
|
|
48
|
+
setServerSocketPort(serverSocketPort) {
|
|
49
|
+
this.serverSocketPort = serverSocketPort;
|
|
50
|
+
}
|
|
51
|
+
isUseSsl() {
|
|
52
|
+
return this.useSsl;
|
|
53
|
+
}
|
|
54
|
+
setUseSsl(useSsl) {
|
|
55
|
+
this.useSsl = useSsl;
|
|
56
|
+
}
|
|
57
|
+
isUseSocket() {
|
|
58
|
+
return this.useSocket;
|
|
59
|
+
}
|
|
60
|
+
setUseSocket(useSocket) {
|
|
61
|
+
this.useSocket = useSocket;
|
|
62
|
+
}
|
|
63
|
+
isUseHttp() {
|
|
64
|
+
return this.useHttp;
|
|
65
|
+
}
|
|
66
|
+
setUseHttp(useHttp) {
|
|
67
|
+
this.useHttp = useHttp;
|
|
68
|
+
}
|
|
69
|
+
getSendRate() {
|
|
70
|
+
return this.sendRate;
|
|
71
|
+
}
|
|
72
|
+
setSendRate(sendRate) {
|
|
73
|
+
this.sendRate = sendRate;
|
|
74
|
+
}
|
|
75
|
+
getReconnectDelay() {
|
|
76
|
+
return this.reconnectDelay;
|
|
77
|
+
}
|
|
78
|
+
setReconnectDelay(reconnectDelay) {
|
|
79
|
+
this.reconnectDelay = reconnectDelay;
|
|
80
|
+
}
|
|
81
|
+
getPingInterval() {
|
|
82
|
+
return this.pingInterval;
|
|
83
|
+
}
|
|
84
|
+
setPingInterval(pingInterval) {
|
|
85
|
+
this.pingInterval = pingInterval;
|
|
86
|
+
}
|
|
87
|
+
getPingTimeout() {
|
|
88
|
+
return this.pingTimeout;
|
|
89
|
+
}
|
|
90
|
+
setPingTimeout(pingTimeout) {
|
|
91
|
+
this.pingTimeout = pingTimeout;
|
|
92
|
+
}
|
|
93
|
+
getAdminSecretKey() {
|
|
94
|
+
return this.adminSecretKey;
|
|
95
|
+
}
|
|
96
|
+
setAdminSecretKey(adminSecretKey) {
|
|
97
|
+
this.adminSecretKey = adminSecretKey;
|
|
98
|
+
}
|
|
99
|
+
getServerSecretKey() {
|
|
100
|
+
return this.serverSecretKey;
|
|
101
|
+
}
|
|
102
|
+
setServerSecretKey(serverSecretKey) {
|
|
103
|
+
this.serverSecretKey = serverSecretKey;
|
|
104
|
+
}
|
|
105
|
+
getClientSecretKey() {
|
|
106
|
+
return this.clientSecretKey;
|
|
107
|
+
}
|
|
108
|
+
setClientSecretKey(clientSecretKey) {
|
|
109
|
+
this.clientSecretKey = clientSecretKey;
|
|
110
|
+
}
|
|
111
|
+
getGNServerSourcePath() {
|
|
112
|
+
return this.gnServerSourcePath;
|
|
113
|
+
}
|
|
114
|
+
setGNServerSourcePath(gnServerSourcePath) {
|
|
115
|
+
this.gnServerSourcePath = gnServerSourcePath;
|
|
116
|
+
}
|
|
117
|
+
getLogType() {
|
|
118
|
+
return this.logType;
|
|
119
|
+
}
|
|
120
|
+
setLogType(logType) {
|
|
121
|
+
this.logType = logType;
|
|
122
|
+
}
|
|
123
|
+
getSocketUrl() {
|
|
124
|
+
if (this.serverSocketPort < 0)
|
|
125
|
+
return (this.useSsl ? "https" : "http") + "://" + this.serverAddress;
|
|
126
|
+
else
|
|
127
|
+
return (this.useSsl ? "https" : "http") + "://" + this.serverAddress + ":" + this.serverSocketPort;
|
|
128
|
+
}
|
|
129
|
+
getHttpUrl() {
|
|
130
|
+
if (this.serverPort < 0)
|
|
131
|
+
return (this.useSsl ? "https" : "http") + "://" + this.serverAddress;
|
|
132
|
+
else
|
|
133
|
+
return (this.useSsl ? "https" : "http") + "://" + this.serverAddress + ":" + this.serverPort;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class Commands {
|
|
2
|
+
}
|
|
3
|
+
Commands.USER_AGENT = "User-Agent";
|
|
4
|
+
Commands.CONTENT_TYPE = "Content-Type";
|
|
5
|
+
Commands.ACCEPT = "Accept";
|
|
6
|
+
Commands.CONTENT_LENGTH = "Content-Length";
|
|
7
|
+
Commands.APPLICATION_JSON = "application/json";
|
|
8
|
+
Commands.APPLICATION_MSGPACK = "application/msgpack";
|
|
9
|
+
Commands.RequestAuthTokenCmd = "a";
|
|
10
|
+
Commands.RequestSecretCmd = "s";
|
|
11
|
+
Commands.RequestGameIdCmd = "g";
|
|
12
|
+
Commands.RequestCmd_MsgPack = "r";
|
|
13
|
+
Commands.ResponseCmd_MsgPack = "r";
|
|
14
|
+
Commands.EventCmd_MsgPack = "e";
|
|
15
|
+
Commands.RequestCmd_Json = "t";
|
|
16
|
+
Commands.ResponseCmd_Json = "t";
|
|
17
|
+
Commands.EventCmd_Json = "y";
|
|
18
|
+
Commands.Data = "d";
|
|
19
|
+
Commands.File = "f";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export class EventCode {
|
|
2
|
+
}
|
|
3
|
+
EventCode.OnGamePlayerFriendUpdate = 1;
|
|
4
|
+
EventCode.OnCharacterPlayerFriendUpdate = 2;
|
|
5
|
+
EventCode.OnGamePlayerGroupUpdate = 3;
|
|
6
|
+
EventCode.OnGroupMemberUpdate = 4;
|
|
7
|
+
EventCode.OnGroupMessageUpdate = 5;
|
|
8
|
+
EventCode.OnCharacterPlayerGroupUpdate = 6;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
export class OperationCode {
|
|
2
|
+
}
|
|
3
|
+
OperationCode.LoginByAdminAccount = -1;
|
|
4
|
+
OperationCode.ChangePasswordAdminAccount = -2;
|
|
5
|
+
OperationCode.GetGameList = -3;
|
|
6
|
+
OperationCode.GetMasterGameSettings = -4;
|
|
7
|
+
OperationCode.SetMasterGameSettings = -5;
|
|
8
|
+
OperationCode.GrantAdminAccount = -6;
|
|
9
|
+
OperationCode.RemoveAdminAccount = -7;
|
|
10
|
+
OperationCode.SetPasswordAdminAccount = -8;
|
|
11
|
+
OperationCode.SetSecretKeyAdminAccount = -9;
|
|
12
|
+
OperationCode.GetGameInformation = -10;
|
|
13
|
+
OperationCode.SetGameInformation = -11;
|
|
14
|
+
OperationCode.GetAdminAccountList = -12;
|
|
15
|
+
OperationCode.GrantGame = -13;
|
|
16
|
+
OperationCode.GetServerLog = -14;
|
|
17
|
+
OperationCode.GetSecretInfoInformation = -15;
|
|
18
|
+
OperationCode.GetSecretInfoList = -16;
|
|
19
|
+
OperationCode.GrantSecretInfo = -17;
|
|
20
|
+
OperationCode.SetSecretInfoInformation = -18;
|
|
21
|
+
OperationCode.GetUsernameAdminAccount = -19;
|
|
22
|
+
OperationCode.GetAnalytics = -20;
|
|
23
|
+
OperationCode.GetEventCallbackCloudScript = -21;
|
|
24
|
+
OperationCode.SetEventCallbackCloudScript = -22;
|
|
25
|
+
OperationCode.ResetStatisticsLeaderboard = -23;
|
|
26
|
+
OperationCode.GetBackupStatisticsLeaderboardVersion = -24;
|
|
27
|
+
OperationCode.GetServerGameData = -25;
|
|
28
|
+
OperationCode.DeleteInDatabase = -26;
|
|
29
|
+
OperationCode.LoginByAccount = 1;
|
|
30
|
+
OperationCode.LoginByAndroidDeviceId = 2;
|
|
31
|
+
OperationCode.LoginByApple = 3;
|
|
32
|
+
OperationCode.LoginByCustomDeviceId = 4;
|
|
33
|
+
OperationCode.LoginByCustomId = 5;
|
|
34
|
+
OperationCode.LoginByEditorDeviceId = 6;
|
|
35
|
+
OperationCode.LoginByFacebook = 7;
|
|
36
|
+
OperationCode.LoginByGenericService = 8;
|
|
37
|
+
OperationCode.LoginByGoogle = 9;
|
|
38
|
+
OperationCode.LoginByiOSDeviceId = 10;
|
|
39
|
+
OperationCode.LoginByLinuxDeviceId = 11;
|
|
40
|
+
OperationCode.LoginByMacOSDeviceId = 12;
|
|
41
|
+
OperationCode.LoginByWindowsDeviceId = 13;
|
|
42
|
+
OperationCode.LoginByWindowsPhoneDeviceId = 14;
|
|
43
|
+
OperationCode.RegisterAccount = 15;
|
|
44
|
+
OperationCode.LinkAccount = 16;
|
|
45
|
+
OperationCode.LinkAndroidDeviceId = 17;
|
|
46
|
+
OperationCode.LinkApple = 18;
|
|
47
|
+
OperationCode.LinkCustomDeviceId = 19;
|
|
48
|
+
OperationCode.LinkCustomId = 20;
|
|
49
|
+
OperationCode.LinkEditorDeviceId = 21;
|
|
50
|
+
OperationCode.LinkFacebook = 22;
|
|
51
|
+
OperationCode.LinkGenericService = 23;
|
|
52
|
+
OperationCode.LinkGoogle = 24;
|
|
53
|
+
OperationCode.LinkiOSDeviceId = 25;
|
|
54
|
+
OperationCode.LinkLinuxDeviceId = 26;
|
|
55
|
+
OperationCode.LinkMacOSDeviceId = 27;
|
|
56
|
+
OperationCode.LinkWindowsDeviceId = 28;
|
|
57
|
+
OperationCode.LinkWindowsPhoneDeviceId = 29;
|
|
58
|
+
OperationCode.UnlinkAccount = 30;
|
|
59
|
+
OperationCode.UnlinkAndroidDeviceId = 31;
|
|
60
|
+
OperationCode.UnlinkApple = 32;
|
|
61
|
+
OperationCode.UnlinkCustomDeviceId = 33;
|
|
62
|
+
OperationCode.UnlinkCustomId = 34;
|
|
63
|
+
OperationCode.UnlinkEditorDeviceId = 35;
|
|
64
|
+
OperationCode.UnlinkFacebook = 36;
|
|
65
|
+
OperationCode.UnlinkGenericService = 37;
|
|
66
|
+
OperationCode.UnlinkGoogle = 38;
|
|
67
|
+
OperationCode.UnlinkiOSDeviceId = 39;
|
|
68
|
+
OperationCode.UnlinkLinuxDeviceId = 40;
|
|
69
|
+
OperationCode.UnlinkMacOSDeviceId = 41;
|
|
70
|
+
OperationCode.UnlinkWindowsDeviceId = 42;
|
|
71
|
+
OperationCode.UnlinkWindowsPhoneDeviceId = 43;
|
|
72
|
+
OperationCode.AddSegment = 44;
|
|
73
|
+
OperationCode.RemoveSegment = 45;
|
|
74
|
+
OperationCode.GetSegment = 46;
|
|
75
|
+
OperationCode.SetTag = 47;
|
|
76
|
+
OperationCode.GetTag = 48;
|
|
77
|
+
OperationCode.SetDisplayName = 49;
|
|
78
|
+
OperationCode.GetDisplayName = 50;
|
|
79
|
+
OperationCode.GetTsCreate = 51;
|
|
80
|
+
OperationCode.GetIpAddressCreate = 52;
|
|
81
|
+
OperationCode.GetTsLastLogin = 53;
|
|
82
|
+
OperationCode.SetPlayerBan = 54;
|
|
83
|
+
OperationCode.GetPlayerBan = 55;
|
|
84
|
+
OperationCode.SetCountryCode = 56;
|
|
85
|
+
OperationCode.GetCountryCode = 57;
|
|
86
|
+
OperationCode.ChangeAccountPassword = 58;
|
|
87
|
+
OperationCode.ResetAccountPassword = 59;
|
|
88
|
+
OperationCode.SetAvatar = 60;
|
|
89
|
+
OperationCode.GetAvatar = 61;
|
|
90
|
+
OperationCode.SetPlayerCurrency = 62;
|
|
91
|
+
OperationCode.GetPlayerCurrency = 63;
|
|
92
|
+
OperationCode.SetPlayerStatistics = 64;
|
|
93
|
+
OperationCode.GetPlayerStatistics = 65;
|
|
94
|
+
OperationCode.GetStatisticsLeaderboard = 66;
|
|
95
|
+
OperationCode.GetStatisticsLeaderboardAroundPlayer = 67;
|
|
96
|
+
OperationCode.SetCustomData = 68;
|
|
97
|
+
OperationCode.GetCustomData = 69;
|
|
98
|
+
OperationCode.SetPlayerData = 70;
|
|
99
|
+
OperationCode.GetPlayerData = 71;
|
|
100
|
+
OperationCode.GetPlayerInformation = 72;
|
|
101
|
+
OperationCode.GetPlayersWithApple = 73;
|
|
102
|
+
OperationCode.GetPlayersWithFacebook = 74;
|
|
103
|
+
OperationCode.GetPlayersWithGoogle = 75;
|
|
104
|
+
OperationCode.GetPlayersWithGenericService = 76;
|
|
105
|
+
OperationCode.GetPlayersWithSegment = 77;
|
|
106
|
+
OperationCode.GetPlayersWithTag = 78;
|
|
107
|
+
OperationCode.GetExternal = 79;
|
|
108
|
+
OperationCode.GetCatalogId = 80;
|
|
109
|
+
OperationCode.GetOwnerInfo = 81;
|
|
110
|
+
OperationCode.GetOnlineStatus = 82;
|
|
111
|
+
OperationCode.RemovePlayerItem = 83;
|
|
112
|
+
OperationCode.RemovePlayerCharacter = 84;
|
|
113
|
+
OperationCode.AddPlayerFriend = 85;
|
|
114
|
+
OperationCode.RemovePlayerFriend = 86;
|
|
115
|
+
OperationCode.GetPlayerInventory = 87;
|
|
116
|
+
OperationCode.GetPlayerCharacter = 88;
|
|
117
|
+
OperationCode.GetPlayerFriend = 89;
|
|
118
|
+
OperationCode.GetPlayerGroup = 90;
|
|
119
|
+
OperationCode.GrantGroup = 91;
|
|
120
|
+
OperationCode.JoinGroup = 92;
|
|
121
|
+
OperationCode.GrantPlayerItem = 93;
|
|
122
|
+
OperationCode.GrantPlayerCharacter = 94;
|
|
123
|
+
OperationCode.GetOwner = 95;
|
|
124
|
+
OperationCode.GetRemoveStatus = 96;
|
|
125
|
+
OperationCode.SetGroupStatistics = 97;
|
|
126
|
+
OperationCode.SetGroupData = 98;
|
|
127
|
+
OperationCode.GetGroupCurrency = 99;
|
|
128
|
+
OperationCode.SetGroupCurrency = 100;
|
|
129
|
+
OperationCode.GrantGroupItem = 101;
|
|
130
|
+
OperationCode.GetStatisticsLeaderboardAroundGroup = 102;
|
|
131
|
+
OperationCode.GetGroupsWithTag = 103;
|
|
132
|
+
OperationCode.GetGroupsWithSegment = 104;
|
|
133
|
+
OperationCode.GetGroupStatistics = 105;
|
|
134
|
+
OperationCode.GetGroupInventory = 106;
|
|
135
|
+
OperationCode.GetGroupData = 107;
|
|
136
|
+
OperationCode.GetGroupInformation = 108;
|
|
137
|
+
OperationCode.GetMembers = 109;
|
|
138
|
+
OperationCode.SetItemStatistics = 110;
|
|
139
|
+
OperationCode.SetItemData = 111;
|
|
140
|
+
OperationCode.GetItemData = 112;
|
|
141
|
+
OperationCode.GetStatisticsLeaderboardAroundItem = 113;
|
|
142
|
+
OperationCode.GetItemsWithTag = 114;
|
|
143
|
+
OperationCode.GetItemsWithSegment = 115;
|
|
144
|
+
OperationCode.GetItemStatistics = 116;
|
|
145
|
+
OperationCode.GetItemInformation = 117;
|
|
146
|
+
OperationCode.GetAmount = 118;
|
|
147
|
+
OperationCode.GetItemType = 119;
|
|
148
|
+
OperationCode.SetTsLastLogin = 120;
|
|
149
|
+
OperationCode.SetRemoveStatus = 121;
|
|
150
|
+
OperationCode.SetAmount = 122;
|
|
151
|
+
OperationCode.RemoveGroup = 123;
|
|
152
|
+
OperationCode.LeaveGroup = 124;
|
|
153
|
+
OperationCode.AddMember = 125;
|
|
154
|
+
OperationCode.RemoveMember = 126;
|
|
155
|
+
OperationCode.GetContentData = 127;
|
|
156
|
+
OperationCode.SetContentData = 128;
|
|
157
|
+
OperationCode.GetGroupMessage = 129;
|
|
158
|
+
OperationCode.SendGroupMessage = 130;
|
|
159
|
+
OperationCode.GetPlayersWithDisplayName = 131;
|
|
160
|
+
OperationCode.GetItemsWithDisplayName = 132;
|
|
161
|
+
OperationCode.GetGroupsWithDisplayName = 133;
|
|
162
|
+
OperationCode.SetOwner = 134;
|
|
163
|
+
OperationCode.RemoveGroupItem = 135;
|
|
164
|
+
OperationCode.GetClassId = 136;
|
|
165
|
+
OperationCode.GetStoreItemInformation = 137;
|
|
166
|
+
OperationCode.GetStoreItemsWithTag = 138;
|
|
167
|
+
OperationCode.GrantStoreItem = 139;
|
|
168
|
+
OperationCode.RemoveTag = 140;
|
|
169
|
+
OperationCode.BuyStoreItem = 141;
|
|
170
|
+
OperationCode.ValidateAppleAppStoreReceipt = 142;
|
|
171
|
+
OperationCode.ValidateGooglePlayStoreReceipt = 143;
|
|
172
|
+
OperationCode.ValidateFacebookStoreReceipt = 144;
|
|
173
|
+
OperationCode.GetFriendStatisticsLeaderboardAroundPlayer = 145;
|
|
174
|
+
OperationCode.GetFriendStatisticsLeaderboard = 146;
|
|
175
|
+
OperationCode.SetEmail = 147;
|
|
176
|
+
OperationCode.GetEmail = 148;
|
|
177
|
+
OperationCode.CreateNewFileUploadInfo = 149;
|
|
178
|
+
OperationCode.GetFileUploadInfo = 150;
|
|
179
|
+
OperationCode.RequestDownloadFileUploadInfo = 151;
|
|
180
|
+
OperationCode.RemoveFileUploadInfo = 152;
|
|
181
|
+
OperationCode.GetFileUploadInfoList = 153;
|
|
182
|
+
OperationCode.SetStoreItemInformation = 154;
|
|
183
|
+
OperationCode.RefreshAuthToken = 155;
|
|
184
|
+
OperationCode.CancelAllMatchmakingTicket = 156;
|
|
185
|
+
OperationCode.CancelMatchmakingTicket = 157;
|
|
186
|
+
OperationCode.CreateMatchmakingTicket = 158;
|
|
187
|
+
OperationCode.GetMatch = 159;
|
|
188
|
+
OperationCode.GetMatchmakingTicket = 160;
|
|
189
|
+
OperationCode.GetQueueStatistics = 161;
|
|
190
|
+
OperationCode.JoinMatchmakingTicket = 162;
|
|
191
|
+
OperationCode.ListMatchmakingTicketsForPlayer = 163;
|
|
192
|
+
OperationCode.GetCurrencyLeaderboard = 164;
|
|
193
|
+
OperationCode.ExecuteFunction = 165;
|
|
194
|
+
OperationCode.GetFunctions = 166;
|
|
195
|
+
OperationCode.AddFunction = 167;
|
|
196
|
+
OperationCode.EditFunction = 168;
|
|
197
|
+
OperationCode.GetFunction = 169;
|
|
198
|
+
OperationCode.LoginByGooglePlayGameService = 170;
|
|
199
|
+
OperationCode.LoginByGameCenter = 171;
|
|
200
|
+
OperationCode.LinkGooglePlayGameService = 172;
|
|
201
|
+
OperationCode.LinkGameCenter = 173;
|
|
202
|
+
OperationCode.UnlinkGooglePlayGameService = 174;
|
|
203
|
+
OperationCode.UnlinkGameCenter = 175;
|
|
204
|
+
OperationCode.GetPlayersWithGooglePlayGameService = 176;
|
|
205
|
+
OperationCode.GetPlayersWithGameCenter = 177;
|
|
206
|
+
OperationCode.GetLastLoginLeaderboard = 178;
|
|
207
|
+
OperationCode.GetCreateLeaderboard = 179;
|
|
208
|
+
OperationCode.GetAllMatchmakingTicket = 180;
|
|
209
|
+
OperationCode.GetAllMatch = 181;
|
|
210
|
+
OperationCode.SendSocketOperationEvent = 182;
|
|
211
|
+
OperationCode.GetStatisticsLog = 183;
|
|
212
|
+
OperationCode.GetCurrencyLog = 184;
|
|
213
|
+
OperationCode.PresentStoreItem = 185;
|
|
214
|
+
OperationCode.GetStoreLog = 186;
|
|
215
|
+
OperationCode.SendEmail = 187;
|
|
216
|
+
OperationCode.SendPushNotification = 188;
|
|
217
|
+
OperationCode.AddPushNotification = 189;
|
|
218
|
+
OperationCode.RemovePushNotification = 190;
|
|
219
|
+
OperationCode.GetPushNotification = 191;
|
|
220
|
+
OperationCode.GetStoreUsed = 192;
|
|
221
|
+
OperationCode.RemoveStoreUsed = 193;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class ReturnCode {
|
|
2
|
+
}
|
|
3
|
+
ReturnCode.SecretInvalid = -10;
|
|
4
|
+
ReturnCode.MaxSizeRequestReject = -9;
|
|
5
|
+
ReturnCode.MaxRequestReject = -8;
|
|
6
|
+
ReturnCode.MaxCCUReject = -7;
|
|
7
|
+
ReturnCode.OperationNotAuthorized = -6;
|
|
8
|
+
ReturnCode.InvalidRequestParameters = -5;
|
|
9
|
+
ReturnCode.OperationInvalid = -4;
|
|
10
|
+
ReturnCode.InternalServerError = -3;
|
|
11
|
+
ReturnCode.OperationNotAllow = -2;
|
|
12
|
+
ReturnCode.OperationTimeout = -1;
|
|
13
|
+
ReturnCode.UnknownError = 0;
|
|
14
|
+
ReturnCode.Ok = 1;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var ExecuteResponseStatus;
|
|
2
|
+
(function (ExecuteResponseStatus) {
|
|
3
|
+
ExecuteResponseStatus[ExecuteResponseStatus["Ok"] = 1] = "Ok";
|
|
4
|
+
ExecuteResponseStatus[ExecuteResponseStatus["Exception"] = 2] = "Exception";
|
|
5
|
+
ExecuteResponseStatus[ExecuteResponseStatus["FunctionNameNotFound"] = 3] = "FunctionNameNotFound";
|
|
6
|
+
ExecuteResponseStatus[ExecuteResponseStatus["VersionInvalid"] = 4] = "VersionInvalid";
|
|
7
|
+
ExecuteResponseStatus[ExecuteResponseStatus["Timeout"] = 5] = "Timeout";
|
|
8
|
+
})(ExecuteResponseStatus || (ExecuteResponseStatus = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var FriendStatus;
|
|
2
|
+
(function (FriendStatus) {
|
|
3
|
+
FriendStatus[FriendStatus["Friend"] = 1] = "Friend";
|
|
4
|
+
FriendStatus[FriendStatus["WaitingAccept"] = 2] = "WaitingAccept";
|
|
5
|
+
FriendStatus[FriendStatus["SentRequestAndWaitingAccept"] = 3] = "SentRequestAndWaitingAccept";
|
|
6
|
+
FriendStatus[FriendStatus["NotFriend"] = 4] = "NotFriend";
|
|
7
|
+
})(FriendStatus || (FriendStatus = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var GroupStatus;
|
|
2
|
+
(function (GroupStatus) {
|
|
3
|
+
GroupStatus[GroupStatus["Member"] = 1] = "Member";
|
|
4
|
+
GroupStatus[GroupStatus["WaitingAccept"] = 2] = "WaitingAccept";
|
|
5
|
+
GroupStatus[GroupStatus["SentRequestAndWaitingAccept"] = 3] = "SentRequestAndWaitingAccept";
|
|
6
|
+
GroupStatus[GroupStatus["NotMember"] = 4] = "NotMember";
|
|
7
|
+
})(GroupStatus || (GroupStatus = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export var InvalidMemberType;
|
|
2
|
+
(function (InvalidMemberType) {
|
|
3
|
+
InvalidMemberType[InvalidMemberType["UnknownError"] = 1] = "UnknownError";
|
|
4
|
+
InvalidMemberType[InvalidMemberType["DataRequired"] = 2] = "DataRequired";
|
|
5
|
+
InvalidMemberType[InvalidMemberType["TypeInvalid"] = 3] = "TypeInvalid";
|
|
6
|
+
InvalidMemberType[InvalidMemberType["StringNull"] = 4] = "StringNull";
|
|
7
|
+
InvalidMemberType[InvalidMemberType["StringMinLength"] = 5] = "StringMinLength";
|
|
8
|
+
InvalidMemberType[InvalidMemberType["StringMaxLength"] = 6] = "StringMaxLength";
|
|
9
|
+
InvalidMemberType[InvalidMemberType["NumberMinValue"] = 7] = "NumberMinValue";
|
|
10
|
+
InvalidMemberType[InvalidMemberType["NumberMaxValue"] = 8] = "NumberMaxValue";
|
|
11
|
+
InvalidMemberType[InvalidMemberType["NumberMustInt"] = 9] = "NumberMustInt";
|
|
12
|
+
InvalidMemberType[InvalidMemberType["GNHashtableNull"] = 10] = "GNHashtableNull";
|
|
13
|
+
InvalidMemberType[InvalidMemberType["GNHashtableMinLength"] = 11] = "GNHashtableMinLength";
|
|
14
|
+
InvalidMemberType[InvalidMemberType["GNHashtableMaxLength"] = 12] = "GNHashtableMaxLength";
|
|
15
|
+
InvalidMemberType[InvalidMemberType["GNArrayNull"] = 13] = "GNArrayNull";
|
|
16
|
+
InvalidMemberType[InvalidMemberType["GNArrayMinLength"] = 14] = "GNArrayMinLength";
|
|
17
|
+
InvalidMemberType[InvalidMemberType["GNArrayMaxLength"] = 15] = "GNArrayMaxLength";
|
|
18
|
+
})(InvalidMemberType || (InvalidMemberType = {}));
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var MatchmakingMemberStatus;
|
|
2
|
+
(function (MatchmakingMemberStatus) {
|
|
3
|
+
MatchmakingMemberStatus[MatchmakingMemberStatus["Pending"] = 1] = "Pending";
|
|
4
|
+
MatchmakingMemberStatus[MatchmakingMemberStatus["Joined"] = 2] = "Joined";
|
|
5
|
+
MatchmakingMemberStatus[MatchmakingMemberStatus["Canceled"] = 3] = "Canceled";
|
|
6
|
+
})(MatchmakingMemberStatus || (MatchmakingMemberStatus = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var MatchmakingTicketStatus;
|
|
2
|
+
(function (MatchmakingTicketStatus) {
|
|
3
|
+
MatchmakingTicketStatus[MatchmakingTicketStatus["WaitingForMembers"] = 1] = "WaitingForMembers";
|
|
4
|
+
MatchmakingTicketStatus[MatchmakingTicketStatus["WaitingForMatch"] = 2] = "WaitingForMatch";
|
|
5
|
+
MatchmakingTicketStatus[MatchmakingTicketStatus["WaitingForServer"] = 3] = "WaitingForServer";
|
|
6
|
+
MatchmakingTicketStatus[MatchmakingTicketStatus["Matched"] = 4] = "Matched";
|
|
7
|
+
MatchmakingTicketStatus[MatchmakingTicketStatus["Canceled"] = 5] = "Canceled";
|
|
8
|
+
})(MatchmakingTicketStatus || (MatchmakingTicketStatus = {}));
|