@xmobitea/gn-server 2.4.13 → 2.4.15
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-app-api/handler/controller/handler/characterPlayer/GetCurrencyLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetFriendStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetAnalyticsRequestHandler.d.ts +4 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/ResetStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetFriendStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLeaderboardAroundGroupRequestHandler.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLeaderboardAroundItemRequestHandler.d.ts +2 -0
- package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLeaderboardRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -0
- package/dist/GN-app-api/service/AnalyticsService.d.ts +2 -0
- package/dist/GN-app-api/service/EventCallbackService.d.ts +7 -0
- package/dist/GN-app-api/service/IAnalyticsService.d.ts +18 -6
- package/dist/GN-common/constant/enumType/ItemType.d.ts +2 -2
- package/dist/GN-common/constant/errorCode/GNErrorCode.d.ts +1 -1
- package/dist/GN-common/constant/parameterCode/GNParameterCode.d.ts +7 -0
- package/dist/GN-library/xcachedata/lib/xCacheData.d.ts +1 -0
- package/dist/GN-library/xdatabase/lib/xDatabase.d.ts +12 -12
- package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +35 -15
- package/dist/GN-startup/cloudScript/templateCloudScript.ts +31 -1
- package/dist/GN-startup/cloudScript/templateEventCallback.ts +95 -3
- package/dist/GNServer.d.ts +1 -0
- package/dist/index.js +1391 -484
- package/package.json +2 -2
|
@@ -10,6 +10,7 @@ declare class GetCurrencyLeaderboardOperationRequest extends OperationRequest {
|
|
|
10
10
|
skip?: number;
|
|
11
11
|
limit?: number;
|
|
12
12
|
loadFromCache?: boolean;
|
|
13
|
+
catalogId?: string;
|
|
13
14
|
isValidRequest(): boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare class GetCurrencyLeaderboardRequestHandler extends CharacterPlayerBaseRequestHandler {
|
|
@@ -10,6 +10,7 @@ declare class GetFriendStatisticsLeaderboardAroundPlayerOperationRequest extends
|
|
|
10
10
|
infoRequestParam: InfoRequestParam;
|
|
11
11
|
skip?: number;
|
|
12
12
|
limit?: number;
|
|
13
|
+
loadFromCache?: boolean;
|
|
13
14
|
isValidRequest(): boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare class GetFriendStatisticsLeaderboardAroundPlayerRequestHandler extends CharacterPlayerBaseRequestHandler {
|
|
@@ -11,6 +11,7 @@ declare class GetFriendStatisticsLeaderboardOperationRequest extends OperationRe
|
|
|
11
11
|
infoRequestParam: InfoRequestParam;
|
|
12
12
|
skip?: number;
|
|
13
13
|
limit?: number;
|
|
14
|
+
loadFromCache?: boolean;
|
|
14
15
|
isValidRequest(): boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare class GetFriendStatisticsLeaderboardRequestHandler extends CharacterPlayerBaseRequestHandler {
|
|
@@ -10,6 +10,8 @@ declare class GetStatisticsLeaderboardAroundPlayerOperationRequest extends Opera
|
|
|
10
10
|
infoRequestParam: InfoRequestParam;
|
|
11
11
|
skip?: number;
|
|
12
12
|
limit?: number;
|
|
13
|
+
loadFromCache?: boolean;
|
|
14
|
+
catalogId?: string;
|
|
13
15
|
isValidRequest(): boolean;
|
|
14
16
|
}
|
|
15
17
|
export declare class GetStatisticsLeaderboardAroundPlayerRequestHandler extends CharacterPlayerBaseRequestHandler {
|
|
@@ -11,6 +11,7 @@ declare class GetStatisticsLeaderboardOperationRequest extends OperationRequest
|
|
|
11
11
|
limit?: number;
|
|
12
12
|
loadFromCache?: boolean;
|
|
13
13
|
version?: string;
|
|
14
|
+
catalogId?: string;
|
|
14
15
|
isValidRequest(): boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare class GetStatisticsLeaderboardRequestHandler extends CharacterPlayerBaseRequestHandler {
|
package/dist/GN-app-api/handler/controller/handler/dashboard/GetAnalyticsRequestHandler.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ declare class GetAnalyticsOperationRequest extends OperationRequest {
|
|
|
10
10
|
requestComplete?: boolean;
|
|
11
11
|
operationSystem?: boolean;
|
|
12
12
|
databaseSystem?: boolean;
|
|
13
|
+
cost?: boolean;
|
|
14
|
+
monthlyCost?: boolean;
|
|
13
15
|
isValidRequest(): boolean;
|
|
14
16
|
}
|
|
15
17
|
export interface AnalyticsRequestParams {
|
|
@@ -18,6 +20,8 @@ export interface AnalyticsRequestParams {
|
|
|
18
20
|
requestComplete: boolean;
|
|
19
21
|
operationSystem: boolean;
|
|
20
22
|
databaseSystem: boolean;
|
|
23
|
+
cost: boolean;
|
|
24
|
+
monthlyCost: boolean;
|
|
21
25
|
}
|
|
22
26
|
export declare class GetAnalyticsRequestHandler extends RequestHandler {
|
|
23
27
|
getCode(): number;
|
|
@@ -9,6 +9,7 @@ declare class ResetStatisticsLeaderboardOperationRequest extends OperationReques
|
|
|
9
9
|
version: string;
|
|
10
10
|
gameId: string;
|
|
11
11
|
log?: string;
|
|
12
|
+
catalogId?: string;
|
|
12
13
|
isValidRequest(): boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare class ResetStatisticsLeaderboardRequestHandler extends RequestHandler {
|
|
@@ -10,6 +10,7 @@ declare class GetFriendStatisticsLeaderboardAroundPlayerOperationRequest extends
|
|
|
10
10
|
infoRequestParam: InfoRequestParam;
|
|
11
11
|
skip?: number;
|
|
12
12
|
limit?: number;
|
|
13
|
+
loadFromCache?: boolean;
|
|
13
14
|
isValidRequest(): boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare class GetFriendStatisticsLeaderboardAroundPlayerRequestHandler extends GamePlayerBaseRequestHandler {
|
|
@@ -11,6 +11,7 @@ declare class GetFriendStatisticsLeaderboardOperationRequest extends OperationRe
|
|
|
11
11
|
infoRequestParam: InfoRequestParam;
|
|
12
12
|
skip?: number;
|
|
13
13
|
limit?: number;
|
|
14
|
+
loadFromCache?: boolean;
|
|
14
15
|
isValidRequest(): boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare class GetFriendStatisticsLeaderboardRequestHandler extends GamePlayerBaseRequestHandler {
|
|
@@ -10,6 +10,7 @@ declare class GetStatisticsLeaderboardAroundPlayerOperationRequest extends Opera
|
|
|
10
10
|
infoRequestParam: InfoRequestParam;
|
|
11
11
|
skip?: number;
|
|
12
12
|
limit?: number;
|
|
13
|
+
loadFromCache?: boolean;
|
|
13
14
|
isValidRequest(): boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare class GetStatisticsLeaderboardAroundPlayerRequestHandler extends GamePlayerBaseRequestHandler {
|
package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLeaderboardRequestHandler.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare class GetCurrencyLeaderboardOperationRequest extends OperationRequest {
|
|
|
10
10
|
skip?: number;
|
|
11
11
|
limit?: number;
|
|
12
12
|
loadFromCache?: boolean;
|
|
13
|
+
catalogId?: string;
|
|
13
14
|
isValidRequest(): boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare class GetCurrencyLeaderboardRequestHandler extends GroupBaseRequestHandler {
|
|
@@ -10,6 +10,8 @@ declare class GetStatisticsLeaderboardAroundGroupOperationRequest extends Operat
|
|
|
10
10
|
infoRequestParam: InfoRequestParam;
|
|
11
11
|
skip?: number;
|
|
12
12
|
limit?: number;
|
|
13
|
+
loadFromCache?: boolean;
|
|
14
|
+
catalogId?: string;
|
|
13
15
|
isValidRequest(): boolean;
|
|
14
16
|
}
|
|
15
17
|
export declare class GetStatisticsLeaderboardAroundGroupRequestHandler extends GroupBaseRequestHandler {
|
package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLeaderboardRequestHandler.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare class GetStatisticsLeaderboardOperationRequest extends OperationRequest
|
|
|
11
11
|
limit?: number;
|
|
12
12
|
loadFromCache?: boolean;
|
|
13
13
|
version?: string;
|
|
14
|
+
catalogId?: string;
|
|
14
15
|
isValidRequest(): boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare class GetStatisticsLeaderboardRequestHandler extends GroupBaseRequestHandler {
|
|
@@ -10,6 +10,8 @@ declare class GetStatisticsLeaderboardAroundItemOperationRequest extends Operati
|
|
|
10
10
|
infoRequestParam: InfoRequestParam;
|
|
11
11
|
skip?: number;
|
|
12
12
|
limit?: number;
|
|
13
|
+
loadFromCache?: boolean;
|
|
14
|
+
catalogId?: string;
|
|
13
15
|
isValidRequest(): boolean;
|
|
14
16
|
}
|
|
15
17
|
export declare class GetStatisticsLeaderboardAroundItemRequestHandler extends ItemBaseRequestHandler {
|
|
@@ -11,6 +11,7 @@ declare class GetStatisticsLeaderboardOperationRequest extends OperationRequest
|
|
|
11
11
|
limit?: number;
|
|
12
12
|
loadFromCache?: boolean;
|
|
13
13
|
version?: string;
|
|
14
|
+
catalogId?: string;
|
|
14
15
|
isValidRequest(): boolean;
|
|
15
16
|
}
|
|
16
17
|
export declare class GetStatisticsLeaderboardRequestHandler extends ItemBaseRequestHandler {
|
|
@@ -10,6 +10,7 @@ declare class GetStatisticsLeaderboardAroundPlayerOperationRequest extends Opera
|
|
|
10
10
|
infoRequestParam: InfoRequestParam;
|
|
11
11
|
skip?: number;
|
|
12
12
|
limit?: number;
|
|
13
|
+
loadFromCache?: boolean;
|
|
13
14
|
isValidRequest(): boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare class GetStatisticsLeaderboardAroundPlayerRequestHandler extends MasterPlayerBaseRequestHandler {
|
|
@@ -20,6 +20,8 @@ export declare class AnalyticsService implements IAnalyticsService {
|
|
|
20
20
|
private currentOperationSystem;
|
|
21
21
|
private currentDatabaseSystem;
|
|
22
22
|
private currentRequestComplete;
|
|
23
|
+
private currentCost;
|
|
24
|
+
private currentMonthlyCost;
|
|
23
25
|
setGNServer(gnServer: GNServer): void;
|
|
24
26
|
getBigAnalyticsItem(tsDate?: number): Promise<BigAnalyticsItem>;
|
|
25
27
|
run(): void;
|
|
@@ -5,6 +5,7 @@ import { IPostEventCallbackService, IPreEventCallbackService, OnPostCallbackFunc
|
|
|
5
5
|
import * as mongoDB from "mongodb";
|
|
6
6
|
import { GNServer } from "../../GNServer";
|
|
7
7
|
import { GNServerSettingsOptions } from "@xmobitea/gn-typescript-client";
|
|
8
|
+
import { OperationEvent } from "../../GN-common/entity/operationEvent/OperationEvent";
|
|
8
9
|
import { MatchmakingTicketCanMatch } from "../handler/controller/handler/multiplayer/MatchmakingHandler";
|
|
9
10
|
interface DbConnection {
|
|
10
11
|
url: string;
|
|
@@ -31,6 +32,9 @@ export interface IEventCallbackCloudScriptService {
|
|
|
31
32
|
executePost(eventName: string, request: {
|
|
32
33
|
[k: string]: any;
|
|
33
34
|
}, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse): Promise<void>;
|
|
35
|
+
executeEvent(eventName: string, request: {
|
|
36
|
+
[k: string]: any;
|
|
37
|
+
}, operationEvent: OperationEvent): Promise<void>;
|
|
34
38
|
executePre(eventName: string, request: {
|
|
35
39
|
[k: string]: any;
|
|
36
40
|
}, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
@@ -86,6 +90,9 @@ export declare class EventCallbackCloudScriptService implements IEventCallbackCl
|
|
|
86
90
|
executeRequestServerDetailSystem(gameId: string, matchmakingTicketCanMatch: MatchmakingTicketCanMatch): Promise<{
|
|
87
91
|
success: boolean;
|
|
88
92
|
}>;
|
|
93
|
+
executeEvent(eventName: string, request: {
|
|
94
|
+
[k: string]: any;
|
|
95
|
+
}, operationEvent: OperationEvent): Promise<void>;
|
|
89
96
|
executePre(eventName: string, request: {
|
|
90
97
|
[k: string]: any;
|
|
91
98
|
}, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse>;
|
|
@@ -45,13 +45,25 @@ export interface BigAnalyticsItem {
|
|
|
45
45
|
};
|
|
46
46
|
requestComplete: {
|
|
47
47
|
eventName: string;
|
|
48
|
-
results:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
];
|
|
48
|
+
results: {
|
|
49
|
+
errorCode: number;
|
|
50
|
+
count: number;
|
|
51
|
+
}[];
|
|
54
52
|
}[];
|
|
53
|
+
cost: {
|
|
54
|
+
requestCount: number;
|
|
55
|
+
matchmakingRequestCount: number;
|
|
56
|
+
cloudScriptGBs: number;
|
|
57
|
+
storageSizeInBytes: number;
|
|
58
|
+
dataTransferSizeInBytes: number;
|
|
59
|
+
};
|
|
60
|
+
monthlyCost: {
|
|
61
|
+
requestCount: number;
|
|
62
|
+
matchmakingRequestCount: number;
|
|
63
|
+
cloudScriptGBs: number;
|
|
64
|
+
storageSizeInBytes: number;
|
|
65
|
+
dataTransferSizeInBytes: number;
|
|
66
|
+
};
|
|
55
67
|
}
|
|
56
68
|
export interface IAnalyticsService {
|
|
57
69
|
getBigAnalyticsItem(tsDate?: number): Promise<BigAnalyticsItem>;
|
|
@@ -19,7 +19,7 @@ export declare class GNErrorCode {
|
|
|
19
19
|
static readonly FileNotFound: number;
|
|
20
20
|
static readonly FileNotUpload: number;
|
|
21
21
|
static readonly OwnerTypeNotSupport: number;
|
|
22
|
-
static readonly
|
|
22
|
+
static readonly ItemNotStackable: number;
|
|
23
23
|
static readonly GameNotFound: number;
|
|
24
24
|
static readonly GameIsExists: number;
|
|
25
25
|
static readonly SecretInfoNotFound: number;
|
|
@@ -579,4 +579,11 @@ export declare class GNParameterCode {
|
|
|
579
579
|
static readonly Objects: string;
|
|
580
580
|
static readonly Indexes: string;
|
|
581
581
|
static readonly DatabaseSystem: string;
|
|
582
|
+
static readonly Cost: string;
|
|
583
|
+
static readonly MonthlyCost: string;
|
|
584
|
+
static readonly RequestCount: string;
|
|
585
|
+
static readonly MatchmakingRequestCount: string;
|
|
586
|
+
static readonly CloudScriptGBs: string;
|
|
587
|
+
static readonly StorageSizeInBytes: string;
|
|
588
|
+
static readonly DataTransferSizeInBytes: string;
|
|
582
589
|
}
|
|
@@ -120,12 +120,12 @@ export declare class xDatabase {
|
|
|
120
120
|
loadCharacterPlayersWithSegmentAsync(segment: string, skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
121
121
|
loadCharacterPlayersWithTagAsync(key: string, value: string, skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
122
122
|
loadCharacterPlayersWithDisplayNameAsync(keyword: string, skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
123
|
-
loadCharacterPlayersLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, direction: -1 | 1, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
124
|
-
loadCharacterPlayersLeaderboardWithStatisticsAllAsync(key: string, gameId: string, direction: -1 | 1, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
123
|
+
loadCharacterPlayersLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, catalogId: string, gameId: string, direction: -1 | 1, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
124
|
+
loadCharacterPlayersLeaderboardWithStatisticsAllAsync(key: string, catalogId: string, gameId: string, direction: -1 | 1, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
125
125
|
loadCharacterPlayersLeaderboardWithCreateAsync(skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
126
|
-
loadCharacterPlayersLeaderboardWithCurrenciesAsync(key: string, skip: number, limit: number, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
127
|
-
loadPositionCharacterPlayerLeaderboardWithStatisticsAsync(key: string,
|
|
128
|
-
loadPositionCharacterPlayerLeaderboardWithCurrenciesAsync(key: string, userId: string, gameId: string): Promise<number>;
|
|
126
|
+
loadCharacterPlayersLeaderboardWithCurrenciesAsync(key: string, skip: number, limit: number, catalogId: string, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
127
|
+
loadPositionCharacterPlayerLeaderboardWithStatisticsAsync(key: string, characterId: string, catalogId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
|
|
128
|
+
loadPositionCharacterPlayerLeaderboardWithCurrenciesAsync(key: string, userId: string, catalogId: string, gameId: string): Promise<number>;
|
|
129
129
|
loadFriendCharacterPlayersLeaderboardWithStatisticsAsync(friendIds: string[], gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<Array<CharacterPlayer>>;
|
|
130
130
|
loadCharacterPlayerAsync(characterId: string, gameId: string, characterPlayerFindOptions?: CharacterPlayerFindOptions): Promise<CharacterPlayer>;
|
|
131
131
|
createCharacterPlayerAsync(result: any, gameId: string): Promise<CharacterPlayer>;
|
|
@@ -170,11 +170,11 @@ export declare class xDatabase {
|
|
|
170
170
|
loadGroupsWithSegmentAsync(segment: string, skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
171
171
|
loadGroupsWithTagAsync(key: string, value: string, skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
172
172
|
loadGroupsWithDisplayNameAsync(keyword: string, skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
173
|
-
loadGroupsLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, direction: -1 | 1, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
174
|
-
loadGroupsLeaderboardWithStatisticsAllAsync(key: string, gameId: string, direction: -1 | 1, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
173
|
+
loadGroupsLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, catalogId: string, gameId: string, direction: -1 | 1, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
174
|
+
loadGroupsLeaderboardWithStatisticsAllAsync(key: string, catalogId: string, gameId: string, direction: -1 | 1, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
175
175
|
loadGroupsLeaderboardWithCreateAsync(skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
176
|
-
loadGroupsLeaderboardWithCurrenciesAsync(key: string, skip: number, limit: number, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
177
|
-
loadPositionGroupLeaderboardWithStatisticsAsync(key: string, groupId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
|
|
176
|
+
loadGroupsLeaderboardWithCurrenciesAsync(key: string, skip: number, limit: number, catalogId: string, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Array<Group>>;
|
|
177
|
+
loadPositionGroupLeaderboardWithStatisticsAsync(key: string, groupId: string, catalogId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
|
|
178
178
|
loadPositionGroupLeaderboardWithCurrenciesAsync(key: string, groupId: string, gameId: string): Promise<number>;
|
|
179
179
|
loadGroupAsync(groupId: string, gameId: string, groupFindOptions?: GroupFindOptions): Promise<Group>;
|
|
180
180
|
createGroupAsync(result: any, gameId: string): Promise<Group>;
|
|
@@ -182,10 +182,10 @@ export declare class xDatabase {
|
|
|
182
182
|
loadInventoriesWithSegmentAsync(segment: string, skip: number, limit: number, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
|
|
183
183
|
loadInventoriesWithTagAsync(key: string, value: string, skip: number, limit: number, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
|
|
184
184
|
loadInventoriesWithDisplayNameAsync(keyword: string, skip: number, limit: number, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
|
|
185
|
-
loadInventoriesLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, gameId: string, direction: -1 | 1, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
|
|
186
|
-
loadInventoriesLeaderboardWithStatisticsAllAsync(key: string, gameId: string, direction: -1 | 1, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
|
|
185
|
+
loadInventoriesLeaderboardWithStatisticsAsync(key: string, skip: number, limit: number, catalogId: string, gameId: string, direction: -1 | 1, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
|
|
186
|
+
loadInventoriesLeaderboardWithStatisticsAllAsync(key: string, catalogId: string, gameId: string, direction: -1 | 1, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
|
|
187
187
|
loadInventoriesLeaderboardWithCreateAsync(skip: number, limit: number, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Array<Inventory>>;
|
|
188
|
-
loadPositionInventoryLeaderboardWithStatisticsAsync(key: string, itemId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
|
|
188
|
+
loadPositionInventoryLeaderboardWithStatisticsAsync(key: string, itemId: string, catalogId: string, gameId: string, initialValue: number, direction: -1 | 1): Promise<number>;
|
|
189
189
|
loadInventoryAsync(itemId: string, gameId: string, inventoryFindOptions?: InventoryFindOptions): Promise<Inventory>;
|
|
190
190
|
createInventoryAsync(result: any, gameId: string): Promise<Inventory>;
|
|
191
191
|
insertInventoryStatisticsLogAsync(itemId: string, gameId: string, key: string, amount: number, startValue: number, finalValue: number, log: string): Promise<void>;
|
|
@@ -24,6 +24,26 @@
|
|
|
24
24
|
"eventName": "system_RequestServerDetail",
|
|
25
25
|
"script": "\nsystemMatchmakingHandlers.system_RequestServerDetail = async (gameId: string, matchmakingTicketCanMatch: MatchmakingTicketCanMatch, log: (log: any) => void): Promise<{ success: boolean }> => {\n\t//call matchmaking.confirmServerDetail(gameId, matchmakingTicketCanMatch, { ipV4Address: '127.0.0.1', ports: [{ name: 'GamePort', publicPort: 2202, privatePort: 3000, protocol: 1 }] }); // after setup success a dedicated server;\n\treturn { success: false };\n}\n",
|
|
26
26
|
"hasEdit": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"eventName": "system_SendEventTo",
|
|
30
|
+
"script": "\neventHandlers.system_SendEventTo = async (request: { userId: string }, operationEvent: OperationEvent, log: (log: any) => void) => {\n\n}\n",
|
|
31
|
+
"hasEdit": false
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"eventName": "system_SendEventToRoom",
|
|
35
|
+
"script": "\neventHandlers.system_SendEventToRoom = async (request: { roomId: string }, operationEvent: OperationEvent, log: (log: any) => void) => {\n\n}\n",
|
|
36
|
+
"hasEdit": false
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"eventName": "system_SendEventToMoreUser",
|
|
40
|
+
"script": "\neventHandlers.system_SendEventToMoreUser = async (request: { userIds: string[] }, operationEvent: OperationEvent, log: (log: any) => void) => {\n\n}\n",
|
|
41
|
+
"hasEdit": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"eventName": "system_SendEventToAllPlayer",
|
|
45
|
+
"script": "\neventHandlers.system_SendEventToAllPlayer = async (request: {}, operationEvent: OperationEvent, log: (log: any) => void) => {\n\n}\n",
|
|
46
|
+
"hasEdit": false
|
|
27
47
|
}
|
|
28
48
|
]
|
|
29
49
|
},
|
|
@@ -163,7 +183,7 @@
|
|
|
163
183
|
},
|
|
164
184
|
{
|
|
165
185
|
"eventName": "characterPlayer_GetCurrencyLeaderboard",
|
|
166
|
-
"script": "\npreHandlers.characterPlayer_GetCurrencyLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetCurrencyLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
186
|
+
"script": "\npreHandlers.characterPlayer_GetCurrencyLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, catalogId: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetCurrencyLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, catalogId: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
167
187
|
"hasEdit": false
|
|
168
188
|
},
|
|
169
189
|
{
|
|
@@ -183,12 +203,12 @@
|
|
|
183
203
|
},
|
|
184
204
|
{
|
|
185
205
|
"eventName": "characterPlayer_GetFriendStatisticsLeaderboardAroundPlayer",
|
|
186
|
-
"script": "\npreHandlers.characterPlayer_GetFriendStatisticsLeaderboardAroundPlayer = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetFriendStatisticsLeaderboardAroundPlayer = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
206
|
+
"script": "\npreHandlers.characterPlayer_GetFriendStatisticsLeaderboardAroundPlayer = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetFriendStatisticsLeaderboardAroundPlayer = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
187
207
|
"hasEdit": false
|
|
188
208
|
},
|
|
189
209
|
{
|
|
190
210
|
"eventName": "characterPlayer_GetFriendStatisticsLeaderboard",
|
|
191
|
-
"script": "\npreHandlers.characterPlayer_GetFriendStatisticsLeaderboard = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetFriendStatisticsLeaderboard = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
211
|
+
"script": "\npreHandlers.characterPlayer_GetFriendStatisticsLeaderboard = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetFriendStatisticsLeaderboard = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
192
212
|
"hasEdit": false
|
|
193
213
|
},
|
|
194
214
|
{
|
|
@@ -268,12 +288,12 @@
|
|
|
268
288
|
},
|
|
269
289
|
{
|
|
270
290
|
"eventName": "characterPlayer_GetStatisticsLeaderboardAroundPlayer",
|
|
271
|
-
"script": "\npreHandlers.characterPlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
291
|
+
"script": "\npreHandlers.characterPlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { characterId: string, key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
272
292
|
"hasEdit": false
|
|
273
293
|
},
|
|
274
294
|
{
|
|
275
295
|
"eventName": "characterPlayer_GetStatisticsLeaderboard",
|
|
276
|
-
"script": "\npreHandlers.characterPlayer_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, version: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, version: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
296
|
+
"script": "\npreHandlers.characterPlayer_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, version: string, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.characterPlayer_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: characterPlayer_InfoRequestParam, loadFromCache: boolean, version: string, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
277
297
|
"hasEdit": false
|
|
278
298
|
},
|
|
279
299
|
{
|
|
@@ -572,7 +592,7 @@
|
|
|
572
592
|
},
|
|
573
593
|
{
|
|
574
594
|
"eventName": "dashboard_ResetStatisticsLeaderboard",
|
|
575
|
-
"script": "\npreHandlers.dashboard_ResetStatisticsLeaderboard = async (request: { type: number, key: string, version: string, gameId: string, log: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.dashboard_ResetStatisticsLeaderboard = async (request: { type: number, key: string, version: string, gameId: string, log: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
595
|
+
"script": "\npreHandlers.dashboard_ResetStatisticsLeaderboard = async (request: { type: number, key: string, version: string, gameId: string, log: string, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.dashboard_ResetStatisticsLeaderboard = async (request: { type: number, key: string, version: string, gameId: string, log: string, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
576
596
|
"hasEdit": false
|
|
577
597
|
},
|
|
578
598
|
{
|
|
@@ -660,12 +680,12 @@
|
|
|
660
680
|
},
|
|
661
681
|
{
|
|
662
682
|
"eventName": "gamePlayer_GetFriendStatisticsLeaderboardAroundPlayer",
|
|
663
|
-
"script": "\npreHandlers.gamePlayer_GetFriendStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.gamePlayer_GetFriendStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
683
|
+
"script": "\npreHandlers.gamePlayer_GetFriendStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.gamePlayer_GetFriendStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
664
684
|
"hasEdit": false
|
|
665
685
|
},
|
|
666
686
|
{
|
|
667
687
|
"eventName": "gamePlayer_GetFriendStatisticsLeaderboard",
|
|
668
|
-
"script": "\npreHandlers.gamePlayer_GetFriendStatisticsLeaderboard = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.gamePlayer_GetFriendStatisticsLeaderboard = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
688
|
+
"script": "\npreHandlers.gamePlayer_GetFriendStatisticsLeaderboard = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.gamePlayer_GetFriendStatisticsLeaderboard = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
669
689
|
"hasEdit": false
|
|
670
690
|
},
|
|
671
691
|
{
|
|
@@ -750,7 +770,7 @@
|
|
|
750
770
|
},
|
|
751
771
|
{
|
|
752
772
|
"eventName": "gamePlayer_GetStatisticsLeaderboardAroundPlayer",
|
|
753
|
-
"script": "\npreHandlers.gamePlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.gamePlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
773
|
+
"script": "\npreHandlers.gamePlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.gamePlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: gamePlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
754
774
|
"hasEdit": false
|
|
755
775
|
},
|
|
756
776
|
{
|
|
@@ -908,7 +928,7 @@
|
|
|
908
928
|
},
|
|
909
929
|
{
|
|
910
930
|
"eventName": "group_GetCurrencyLeaderboard",
|
|
911
|
-
"script": "\npreHandlers.group_GetCurrencyLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.group_GetCurrencyLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
931
|
+
"script": "\npreHandlers.group_GetCurrencyLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.group_GetCurrencyLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
912
932
|
"hasEdit": false
|
|
913
933
|
},
|
|
914
934
|
{
|
|
@@ -988,12 +1008,12 @@
|
|
|
988
1008
|
},
|
|
989
1009
|
{
|
|
990
1010
|
"eventName": "group_GetStatisticsLeaderboardAroundGroup",
|
|
991
|
-
"script": "\npreHandlers.group_GetStatisticsLeaderboardAroundGroup = async (request: { groupId: string, key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.group_GetStatisticsLeaderboardAroundGroup = async (request: { groupId: string, key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1011
|
+
"script": "\npreHandlers.group_GetStatisticsLeaderboardAroundGroup = async (request: { groupId: string, key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.group_GetStatisticsLeaderboardAroundGroup = async (request: { groupId: string, key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
992
1012
|
"hasEdit": false
|
|
993
1013
|
},
|
|
994
1014
|
{
|
|
995
1015
|
"eventName": "group_GetStatisticsLeaderboard",
|
|
996
|
-
"script": "\npreHandlers.group_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean, version: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.group_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean, version: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1016
|
+
"script": "\npreHandlers.group_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean, version: string, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.group_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: group_InfoRequestParam, loadFromCache: boolean, version: string, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
997
1017
|
"hasEdit": false
|
|
998
1018
|
},
|
|
999
1019
|
{
|
|
@@ -1181,12 +1201,12 @@
|
|
|
1181
1201
|
},
|
|
1182
1202
|
{
|
|
1183
1203
|
"eventName": "inventory_GetStatisticsLeaderboardAroundItem",
|
|
1184
|
-
"script": "\npreHandlers.inventory_GetStatisticsLeaderboardAroundItem = async (request: { itemId: string, key: string, skip: number, limit: number, infoRequestParam: inventory_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.inventory_GetStatisticsLeaderboardAroundItem = async (request: { itemId: string, key: string, skip: number, limit: number, infoRequestParam: inventory_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1204
|
+
"script": "\npreHandlers.inventory_GetStatisticsLeaderboardAroundItem = async (request: { itemId: string, key: string, skip: number, limit: number, infoRequestParam: inventory_InfoRequestParam, loadFromCache: boolean, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.inventory_GetStatisticsLeaderboardAroundItem = async (request: { itemId: string, key: string, skip: number, limit: number, infoRequestParam: inventory_InfoRequestParam, loadFromCache: boolean, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1185
1205
|
"hasEdit": false
|
|
1186
1206
|
},
|
|
1187
1207
|
{
|
|
1188
1208
|
"eventName": "inventory_GetStatisticsLeaderboard",
|
|
1189
|
-
"script": "\npreHandlers.inventory_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: inventory_InfoRequestParam, loadFromCache: boolean, version: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.inventory_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: inventory_InfoRequestParam, loadFromCache: boolean, version: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1209
|
+
"script": "\npreHandlers.inventory_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: inventory_InfoRequestParam, loadFromCache: boolean, version: string, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.inventory_GetStatisticsLeaderboard = async (request: { key: string, skip: number, limit: number, infoRequestParam: inventory_InfoRequestParam, loadFromCache: boolean, version: string, catalogId: string, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1190
1210
|
"hasEdit": false
|
|
1191
1211
|
},
|
|
1192
1212
|
{
|
|
@@ -1419,7 +1439,7 @@
|
|
|
1419
1439
|
},
|
|
1420
1440
|
{
|
|
1421
1441
|
"eventName": "masterPlayer_GetStatisticsLeaderboardAroundPlayer",
|
|
1422
|
-
"script": "\npreHandlers.masterPlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: masterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.masterPlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: masterPlayer_InfoRequestParam }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1442
|
+
"script": "\npreHandlers.masterPlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: masterPlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => {\n\n\treturn null;\n}\n\npostHandlers.masterPlayer_GetStatisticsLeaderboardAroundPlayer = async (request: { userId: string, key: string, skip: number, limit: number, infoRequestParam: masterPlayer_InfoRequestParam, loadFromCache: boolean, }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => {\n\n\treturn operationResponse;\n}\n",
|
|
1423
1443
|
"hasEdit": false
|
|
1424
1444
|
},
|
|
1425
1445
|
{
|
|
@@ -96,7 +96,36 @@ class CloudScriptAdmin {
|
|
|
96
96
|
public readonly storeInventory = GNNetwork.storeInventory.admin;
|
|
97
97
|
public readonly multiplayer = GNNetwork.multiplayer.admin;
|
|
98
98
|
public readonly cloudScript = GNNetwork.cloudScript.admin;
|
|
99
|
-
public readonly dashboard =
|
|
99
|
+
public readonly dashboard = {
|
|
100
|
+
getAdminAccountList: GNNetwork.dashboard.getAdminAccountList,
|
|
101
|
+
getAdminAccountListAsync: GNNetwork.dashboard.getAdminAccountListAsync,
|
|
102
|
+
getGameInformation: GNNetwork.dashboard.getGameInformation,
|
|
103
|
+
getGameInformationAsync: GNNetwork.dashboard.getGameInformationAsync,
|
|
104
|
+
getGameList: GNNetwork.dashboard.getGameList,
|
|
105
|
+
getGameListAsync: GNNetwork.dashboard.getGameListAsync,
|
|
106
|
+
getMasterGameSettings: GNNetwork.dashboard.getMasterGameSettings,
|
|
107
|
+
getMasterGameSettingsAsync: GNNetwork.dashboard.getMasterGameSettingsAsync,
|
|
108
|
+
getSecretInfoInformation: GNNetwork.dashboard.getSecretInfoInformation,
|
|
109
|
+
getSecretInfoInformationAsync: GNNetwork.dashboard.getSecretInfoInformationAsync,
|
|
110
|
+
getSecretInfoList: GNNetwork.dashboard.getSecretInfoList,
|
|
111
|
+
getSecretInfoListAsync: GNNetwork.dashboard.getSecretInfoListAsync,
|
|
112
|
+
getServerLog: GNNetwork.dashboard.getServerLog,
|
|
113
|
+
getServerLogAsync: GNNetwork.dashboard.getServerLogAsync,
|
|
114
|
+
setGameInformation: GNNetwork.dashboard.setGameInformation,
|
|
115
|
+
setGameInformationAsync: GNNetwork.dashboard.setGameInformationAsync,
|
|
116
|
+
getUsernameAdminAccount: GNNetwork.dashboard.getUsernameAdminAccount,
|
|
117
|
+
getUsernameAdminAccountAsync: GNNetwork.dashboard.getUsernameAdminAccountAsync,
|
|
118
|
+
getAnalytics: GNNetwork.dashboard.getAnalytics,
|
|
119
|
+
getAnalyticsAsync: GNNetwork.dashboard.getAnalyticsAsync,
|
|
120
|
+
resetStatisticsLeaderboard: GNNetwork.dashboard.resetStatisticsLeaderboard,
|
|
121
|
+
resetStatisticsLeaderboardAsync: GNNetwork.dashboard.resetStatisticsLeaderboardAsync,
|
|
122
|
+
getBackupStatisticsLeaderboardVersion: GNNetwork.dashboard.getBackupStatisticsLeaderboardVersion,
|
|
123
|
+
getBackupStatisticsLeaderboardVersionAsync: GNNetwork.dashboard.getBackupStatisticsLeaderboardVersionAsync,
|
|
124
|
+
getServerGameData: GNNetwork.dashboard.getServerGameData,
|
|
125
|
+
getServerGameDataAsync: GNNetwork.dashboard.getServerGameDataAsync,
|
|
126
|
+
deleteInDatabase: GNNetwork.dashboard.deleteInDatabase,
|
|
127
|
+
deleteInDatabaseAsync: GNNetwork.dashboard.deleteInDatabaseAsync,
|
|
128
|
+
};
|
|
100
129
|
public send(
|
|
101
130
|
requestType: RequestType,
|
|
102
131
|
requestRole: RequestRole,
|
|
@@ -491,6 +520,7 @@ if (parentPort) {
|
|
|
491
520
|
let endMemoryUsage = process.memoryUsage();
|
|
492
521
|
|
|
493
522
|
let memoryUsedInBytes = endMemoryUsage.heapUsed - startMemoryUsage.heapUsed;
|
|
523
|
+
if (memoryUsedInBytes <= 0) memoryUsedInBytes = 8192;
|
|
494
524
|
let executeTimeInMs = endTime - startTime;
|
|
495
525
|
|
|
496
526
|
//let cost = (memoryUsedInGb * executeTime) / 1000 * 0.022;
|