@xmobitea/gn-typescript-client 2.5.1-esnext → 2.5.1
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/gn.js.client.js +49111 -0
- package/dist/gn.js.client.min.js +2 -0
- package/dist/gn.js.client.min.js.LICENSE.txt +14 -0
- package/dist/index.js +36400 -332
- package/package.json +1 -1
- package/dist/runtime/GNNetwork.js +0 -258
- package/dist/runtime/GNNetworkAuthenticateApi.js +0 -167
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +0 -1295
- package/dist/runtime/GNNetworkCloudScriptApi.js +0 -143
- package/dist/runtime/GNNetworkContentApi.js +0 -191
- package/dist/runtime/GNNetworkDashboardApi.js +0 -231
- package/dist/runtime/GNNetworkGamePlayerApi.js +0 -1271
- package/dist/runtime/GNNetworkGroupApi.js +0 -983
- package/dist/runtime/GNNetworkInventoryApi.js +0 -839
- package/dist/runtime/GNNetworkMasterPlayerApi.js +0 -2071
- package/dist/runtime/GNNetworkMultiplayerApi.js +0 -263
- package/dist/runtime/GNNetworkStoreInventoryApi.js +0 -359
- package/dist/runtime/common/Action0.js +0 -1
- package/dist/runtime/common/Action1.js +0 -1
- package/dist/runtime/common/Action2.js +0 -1
- package/dist/runtime/common/Action3.js +0 -1
- package/dist/runtime/common/Action4.js +0 -1
- package/dist/runtime/common/GNData.js +0 -211
- package/dist/runtime/config/GNServerSettings.js +0 -135
- package/dist/runtime/constant/Commands.js +0 -19
- package/dist/runtime/constant/EventCode.js +0 -8
- package/dist/runtime/constant/OperationCode.js +0 -221
- package/dist/runtime/constant/ReturnCode.js +0 -14
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +0 -8
- package/dist/runtime/constant/enumType/FriendStatus.js +0 -7
- package/dist/runtime/constant/enumType/GoogleLoginType.js +0 -5
- package/dist/runtime/constant/enumType/GroupStatus.js +0 -7
- package/dist/runtime/constant/enumType/InvalidMemberType.js +0 -18
- package/dist/runtime/constant/enumType/ItemType.js +0 -5
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +0 -6
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +0 -8
- package/dist/runtime/constant/enumType/OwnerType.js +0 -8
- package/dist/runtime/constant/enumType/PermissionDataItem.js +0 -5
- package/dist/runtime/constant/enumType/PushPlatformType.js +0 -5
- package/dist/runtime/constant/enumType/RequestRole.js +0 -6
- package/dist/runtime/constant/enumType/RequestType.js +0 -15
- package/dist/runtime/constant/enumType/StoreItemType.js +0 -5
- package/dist/runtime/constant/enumType/StoreReceiveType.js +0 -8
- package/dist/runtime/constant/errorCode/GNErrorCode.js +0 -52
- package/dist/runtime/constant/parameterCode/GNParameterCode.js +0 -593
- package/dist/runtime/constant/parameterCode/ParameterCode.js +0 -6
- package/dist/runtime/entity/DataMember.js +0 -208
- package/dist/runtime/entity/GNMetadata.js +0 -11
- package/dist/runtime/entity/InvalidMember.js +0 -1
- package/dist/runtime/entity/OperationEvent.js +0 -33
- package/dist/runtime/entity/OperationHelper.js +0 -23
- package/dist/runtime/entity/OperationRequest.js +0 -51
- package/dist/runtime/entity/OperationResponse.js +0 -82
- package/dist/runtime/entity/models/AuthenticateModels.js +0 -420
- package/dist/runtime/entity/models/AuthenticateRequestModels.js +0 -206
- package/dist/runtime/entity/models/AuthenticateResponseModels.js +0 -131
- package/dist/runtime/entity/models/CharacterPlayerModels.js +0 -1433
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +0 -1439
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +0 -376
- package/dist/runtime/entity/models/CloudScriptModels.js +0 -197
- package/dist/runtime/entity/models/CloudScriptRequestModels.js +0 -143
- package/dist/runtime/entity/models/CloudScriptResponseModels.js +0 -40
- package/dist/runtime/entity/models/ContentModels.js +0 -211
- package/dist/runtime/entity/models/ContentRequestModels.js +0 -197
- package/dist/runtime/entity/models/ContentResponseModels.js +0 -54
- package/dist/runtime/entity/models/DashboardModels.js +0 -2959
- package/dist/runtime/entity/models/DashboardRequestModels.js +0 -294
- package/dist/runtime/entity/models/DashboardResponseModels.js +0 -187
- package/dist/runtime/entity/models/GamePlayerModels.js +0 -1587
- package/dist/runtime/entity/models/GamePlayerRequestModels.js +0 -1412
- package/dist/runtime/entity/models/GamePlayerResponseModels.js +0 -369
- package/dist/runtime/entity/models/GenericModels.js +0 -177
- package/dist/runtime/entity/models/GroupModels.js +0 -1139
- package/dist/runtime/entity/models/GroupRequestModels.js +0 -1088
- package/dist/runtime/entity/models/GroupResponseModels.js +0 -285
- package/dist/runtime/entity/models/InventoryModels.js +0 -915
- package/dist/runtime/entity/models/InventoryRequestModels.js +0 -926
- package/dist/runtime/entity/models/InventoryResponseModels.js +0 -243
- package/dist/runtime/entity/models/MasterPlayerModels.js +0 -2570
- package/dist/runtime/entity/models/MasterPlayerRequestModels.js +0 -2314
- package/dist/runtime/entity/models/MasterPlayerResponseModels.js +0 -607
- package/dist/runtime/entity/models/MultiplayerModels.js +0 -404
- package/dist/runtime/entity/models/MultiplayerRequestModels.js +0 -278
- package/dist/runtime/entity/models/MultiplayerResponseModels.js +0 -75
- package/dist/runtime/entity/models/StoreInventoryModels.js +0 -797
- package/dist/runtime/entity/models/StoreInventoryRequestModels.js +0 -386
- package/dist/runtime/entity/models/StoreInventoryResponseModels.js +0 -103
- package/dist/runtime/entity/request/CustomOperationRequest.js +0 -24
- package/dist/runtime/entity/response/CustomOperationResponse.js +0 -29
- package/dist/runtime/entity/response/GetAuthInfoResponse.js +0 -2
- package/dist/runtime/helper/CodeHelper.js +0 -61
- package/dist/runtime/helper/ConverterService.js +0 -275
- package/dist/runtime/helper/GNSupport.js +0 -8
- package/dist/runtime/helper/GNUtils.js +0 -72
- package/dist/runtime/logger/GNDebug.js +0 -29
- package/dist/runtime/networking/AuthenticateStatus.js +0 -14
- package/dist/runtime/networking/IPeer.js +0 -1
- package/dist/runtime/networking/NetworkingPeer.js +0 -163
- package/dist/runtime/networking/OperationPending.js +0 -53
- package/dist/runtime/networking/PeerBase.js +0 -170
- package/dist/runtime/networking/handler/IServerEventHandler.js +0 -13
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +0 -35
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +0 -35
- package/dist/runtime/networking/http/HttpPeer.js +0 -124
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +0 -6
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +0 -146
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +0 -126
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +0 -176
- package/dist/runtime/networking/socket/SocketPeer.js +0 -108
- package/dist/runtime/typescript/ServiceUpdate.js +0 -12
|
@@ -1,135 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
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";
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,221 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,6 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
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 = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var OwnerType;
|
|
2
|
-
(function (OwnerType) {
|
|
3
|
-
OwnerType[OwnerType["MasterPlayer"] = 1] = "MasterPlayer";
|
|
4
|
-
OwnerType[OwnerType["GamePlayer"] = 2] = "GamePlayer";
|
|
5
|
-
OwnerType[OwnerType["CharacterPlayer"] = 3] = "CharacterPlayer";
|
|
6
|
-
OwnerType[OwnerType["Group"] = 4] = "Group";
|
|
7
|
-
OwnerType[OwnerType["Inventory"] = 5] = "Inventory";
|
|
8
|
-
})(OwnerType || (OwnerType = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export var RequestType;
|
|
2
|
-
(function (RequestType) {
|
|
3
|
-
RequestType[RequestType["Custom"] = 0] = "Custom";
|
|
4
|
-
RequestType[RequestType["Authenticate"] = 1] = "Authenticate";
|
|
5
|
-
RequestType[RequestType["CharacterPlayer"] = 2] = "CharacterPlayer";
|
|
6
|
-
RequestType[RequestType["Content"] = 3] = "Content";
|
|
7
|
-
RequestType[RequestType["GamePlayer"] = 4] = "GamePlayer";
|
|
8
|
-
RequestType[RequestType["Group"] = 5] = "Group";
|
|
9
|
-
RequestType[RequestType["Inventory"] = 6] = "Inventory";
|
|
10
|
-
RequestType[RequestType["MasterPlayer"] = 7] = "MasterPlayer";
|
|
11
|
-
RequestType[RequestType["StoreInventory"] = 8] = "StoreInventory";
|
|
12
|
-
RequestType[RequestType["Dashboard"] = 9] = "Dashboard";
|
|
13
|
-
RequestType[RequestType["Multiplayer"] = 10] = "Multiplayer";
|
|
14
|
-
RequestType[RequestType["CloudScript"] = 11] = "CloudScript";
|
|
15
|
-
})(RequestType || (RequestType = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var StoreReceiveType;
|
|
2
|
-
(function (StoreReceiveType) {
|
|
3
|
-
StoreReceiveType[StoreReceiveType["Buy"] = 1] = "Buy";
|
|
4
|
-
StoreReceiveType[StoreReceiveType["Present"] = 2] = "Present";
|
|
5
|
-
StoreReceiveType[StoreReceiveType["AppleAppStore"] = 3] = "AppleAppStore";
|
|
6
|
-
StoreReceiveType[StoreReceiveType["FacebookStore"] = 4] = "FacebookStore";
|
|
7
|
-
StoreReceiveType[StoreReceiveType["GooglePlayStore"] = 5] = "GooglePlayStore";
|
|
8
|
-
})(StoreReceiveType || (StoreReceiveType = {}));
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export class GNErrorCode {
|
|
2
|
-
}
|
|
3
|
-
GNErrorCode.Ok = 1;
|
|
4
|
-
GNErrorCode.AccountNotFound = 2;
|
|
5
|
-
GNErrorCode.AccountPasswordWrong = 3;
|
|
6
|
-
GNErrorCode.AccountUsernameExists = 4;
|
|
7
|
-
GNErrorCode.VerifyTokenError = 5;
|
|
8
|
-
GNErrorCode.ServiceNameNotFound = 6;
|
|
9
|
-
GNErrorCode.CharacterPlayerNotFound = 7;
|
|
10
|
-
GNErrorCode.NotEnoughCurrency = 8;
|
|
11
|
-
GNErrorCode.KeyNotFound = 9;
|
|
12
|
-
GNErrorCode.ItemNotFound = 10;
|
|
13
|
-
GNErrorCode.CatalogIdNotFound = 11;
|
|
14
|
-
GNErrorCode.GroupNotFound = 12;
|
|
15
|
-
GNErrorCode.OwnerNotFound = 13;
|
|
16
|
-
GNErrorCode.ClassIdNotFound = 14;
|
|
17
|
-
GNErrorCode.MemberNotFound = 15;
|
|
18
|
-
GNErrorCode.PlayerNotMember = 16;
|
|
19
|
-
GNErrorCode.GamePlayerNotFound = 17;
|
|
20
|
-
GNErrorCode.FileNotFound = 18;
|
|
21
|
-
GNErrorCode.FileNotUpload = 19;
|
|
22
|
-
GNErrorCode.OwnerTypeNotSupport = 20;
|
|
23
|
-
GNErrorCode.ItemNotStackable = 21;
|
|
24
|
-
GNErrorCode.GameNotFound = 22;
|
|
25
|
-
GNErrorCode.GameIsExists = 23;
|
|
26
|
-
GNErrorCode.SecretInfoNotFound = 24;
|
|
27
|
-
GNErrorCode.SecretInfoIsExists = 25;
|
|
28
|
-
GNErrorCode.ExternalNotLinked = 26;
|
|
29
|
-
GNErrorCode.ExternalLinkedOtherAccount = 27;
|
|
30
|
-
GNErrorCode.ExternalLinkedOtherValue = 28;
|
|
31
|
-
GNErrorCode.MasterPlayerNotFound = 29;
|
|
32
|
-
GNErrorCode.StoreItemNotFound = 30;
|
|
33
|
-
GNErrorCode.BuyerNotFound = 31;
|
|
34
|
-
GNErrorCode.CanNotBuyThisStoreItem = 32;
|
|
35
|
-
GNErrorCode.ExceptionWhenValidateReceipt = 33;
|
|
36
|
-
GNErrorCode.StoreInvalid = 34;
|
|
37
|
-
GNErrorCode.ReceiptInvalid = 35;
|
|
38
|
-
GNErrorCode.StoreItemHadBeenRemove = 36;
|
|
39
|
-
GNErrorCode.DisplayNameHasUse = 37;
|
|
40
|
-
GNErrorCode.PlayerBan = 38;
|
|
41
|
-
GNErrorCode.MatchmakingTicketNotFound = 39;
|
|
42
|
-
GNErrorCode.MatchmakingTicketAlreadyCompleted = 40;
|
|
43
|
-
GNErrorCode.MatchmakingPlayerHasNotJoinedTicket = 41;
|
|
44
|
-
GNErrorCode.MatchNotFound = 42;
|
|
45
|
-
GNErrorCode.MatchmakingPlayerHasJoinedOtherTicket = 43;
|
|
46
|
-
GNErrorCode.MatchmakingQueueNotFound = 44;
|
|
47
|
-
GNErrorCode.TicketSizeError = 45;
|
|
48
|
-
GNErrorCode.ExecuteError = 46;
|
|
49
|
-
GNErrorCode.VersionInvalid = 47;
|
|
50
|
-
GNErrorCode.EmailInvalid = 48;
|
|
51
|
-
GNErrorCode.StoreItemHadPurchaseAndNonConsumable = 49;
|
|
52
|
-
GNErrorCode.StoreItemHadExists = 50;
|