@xmobitea/gn-typescript-client 2.6.3 → 2.6.4
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 +4635 -5021
- package/dist/gn.js.client.min.js +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.js +4634 -5020
- package/dist/runtime/GNNetwork.d.ts +8 -8
- package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +12 -12
- package/dist/runtime/GNNetworkDashboardApi.d.ts +6 -6
- package/dist/runtime/GNNetworkGamePlayerApi.d.ts +18 -18
- package/dist/runtime/GNNetworkGroupApi.d.ts +6 -6
- package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +6 -6
- package/dist/runtime/constant/EventCode.d.ts +6 -6
- package/dist/runtime/constant/OperationCode.d.ts +219 -219
- package/dist/runtime/constant/errorCode/{GNErrorCode.d.ts → ErrorCode.d.ts} +1 -1
- package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +596 -0
- package/dist/runtime/entity/OperationEvent.d.ts +2 -5
- package/dist/runtime/entity/OperationHelper.d.ts +2 -2
- package/dist/runtime/entity/OperationRequest.d.ts +2 -5
- package/dist/runtime/entity/OperationResponse.d.ts +2 -5
- package/dist/runtime/entity/models/AuthenticateModels.d.ts +3 -0
- package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +36 -54
- package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +1 -1
- package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +6 -6
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +224 -277
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +2 -2
- package/dist/runtime/entity/models/CloudScriptModels.d.ts +3 -2
- package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +20 -25
- package/dist/runtime/entity/models/ContentRequestModels.d.ts +28 -35
- package/dist/runtime/entity/models/DashboardModels.d.ts +23 -23
- package/dist/runtime/entity/models/DashboardRequestModels.d.ts +58 -84
- package/dist/runtime/entity/models/DashboardResponseModels.d.ts +3 -3
- package/dist/runtime/entity/models/GamePlayerModels.d.ts +9 -9
- package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +226 -278
- package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +3 -3
- package/dist/runtime/entity/models/GroupModels.d.ts +3 -3
- package/dist/runtime/entity/models/GroupRequestModels.d.ts +166 -206
- package/dist/runtime/entity/models/GroupResponseModels.d.ts +1 -1
- package/dist/runtime/entity/models/InventoryRequestModels.d.ts +136 -170
- package/dist/runtime/entity/models/MasterPlayerModels.d.ts +3 -1
- package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +342 -428
- package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +1 -1
- package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +40 -50
- package/dist/runtime/entity/models/StoreInventoryModels.d.ts +4 -4
- package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +62 -76
- package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +1 -1
- package/dist/runtime/entity/request/CustomOperationRequest.d.ts +3 -4
- package/dist/runtime/entity/response/CustomOperationResponse.d.ts +1 -1
- package/dist/runtime/helper/CodeHelper.d.ts +0 -8
- package/dist/runtime/helper/EnumUtility.d.ts +6 -0
- package/dist/runtime/networking/IPeer.d.ts +1 -1
- package/dist/runtime/networking/NetworkingPeer.d.ts +2 -2
- package/dist/runtime/networking/OperationPending.d.ts +3 -3
- package/dist/runtime/networking/PeerBase.d.ts +3 -3
- package/dist/runtime/networking/handler/IServerEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +1 -1
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +3 -1
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +1 -1
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +10 -12
- package/dist/runtime/networking/socket/SocketPeer.d.ts +2 -2
- package/package.json +1 -1
- package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +0 -599
- /package/{GNServerSettingsConfig.debug.json → GNServerSettings.debug.json} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestRole } from "./../constant/enumType/RequestRole";
|
|
2
2
|
import { RequestType } from "./../constant/enumType/RequestType";
|
|
3
3
|
import { Action1 } from "./../common/Action1";
|
|
4
|
-
import {
|
|
4
|
+
import { GNHashtable } from "./../common/GNData";
|
|
5
5
|
import { OperationRequest } from "./../entity/OperationRequest";
|
|
6
6
|
import { OperationResponse } from "./../entity/OperationResponse";
|
|
7
7
|
import { IPeer } from "./IPeer";
|
|
@@ -21,11 +21,11 @@ export declare abstract class PeerBase implements IPeer {
|
|
|
21
21
|
initPeer(): void;
|
|
22
22
|
private initSendRate;
|
|
23
23
|
protected abstract initGNSocketObject(): void;
|
|
24
|
-
enqueue(requestType: RequestType,
|
|
24
|
+
enqueue(requestType: RequestType, role: RequestRole, operationRequest: OperationRequest, onOperationResponse: Action1<OperationResponse>, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
|
|
25
25
|
protected abstract onEnqueue(operationPending: OperationPending): void;
|
|
26
26
|
isUsing(): boolean;
|
|
27
27
|
service(): void;
|
|
28
|
-
protected onResponseHandler(obj:
|
|
28
|
+
protected onResponseHandler(obj: GNHashtable): void;
|
|
29
29
|
send(operationPending: OperationPending): void;
|
|
30
30
|
addPing(value: number): void;
|
|
31
31
|
}
|
|
@@ -8,6 +8,6 @@ export declare class CharacterPlayerFriendUpdate {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class OnCharacterPlayerFriendUpdateEventHandler implements IServerEventHandler {
|
|
10
10
|
static onUpdate: Action1<CharacterPlayerFriendUpdate>;
|
|
11
|
-
getEventCode():
|
|
11
|
+
getEventCode(): string;
|
|
12
12
|
handle(operationEvent: OperationEvent): void;
|
|
13
13
|
}
|
|
@@ -8,6 +8,6 @@ export declare class CharacterPlayerGroupUpdate {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class OnCharacterPlayerGroupUpdateEventHandler implements IServerEventHandler {
|
|
10
10
|
static onUpdate: Action1<CharacterPlayerGroupUpdate>;
|
|
11
|
-
getEventCode():
|
|
11
|
+
getEventCode(): string;
|
|
12
12
|
handle(operationEvent: OperationEvent): void;
|
|
13
13
|
}
|
|
@@ -8,6 +8,6 @@ export declare class GamePlayerFriendUpdate {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class OnGamePlayerFriendUpdateEventHandler implements IServerEventHandler {
|
|
10
10
|
static onUpdate: Action1<GamePlayerFriendUpdate>;
|
|
11
|
-
getEventCode():
|
|
11
|
+
getEventCode(): string;
|
|
12
12
|
handle(operationEvent: OperationEvent): void;
|
|
13
13
|
}
|
|
@@ -8,6 +8,6 @@ export declare class GamePlayerGroupUpdate {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class OnGamePlayerGroupUpdateEventHandler implements IServerEventHandler {
|
|
10
10
|
static onUpdate: Action1<GamePlayerGroupUpdate>;
|
|
11
|
-
getEventCode():
|
|
11
|
+
getEventCode(): string;
|
|
12
12
|
handle(operationEvent: OperationEvent): void;
|
|
13
13
|
}
|
|
@@ -7,6 +7,6 @@ export declare class GroupMemberUpdate {
|
|
|
7
7
|
}
|
|
8
8
|
export declare class OnGroupMemberUpdateEventHandler implements IServerEventHandler {
|
|
9
9
|
static onUpdate: Action1<GroupMemberUpdate>;
|
|
10
|
-
getEventCode():
|
|
10
|
+
getEventCode(): string;
|
|
11
11
|
handle(operationEvent: OperationEvent): void;
|
|
12
12
|
}
|
|
@@ -4,9 +4,11 @@ import { GroupModels } from "./../../entity/models/GroupModels";
|
|
|
4
4
|
import { IServerEventHandler } from "./IServerEventHandler";
|
|
5
5
|
export declare class GroupMessageUpdate {
|
|
6
6
|
groupMessages: Array<GroupModels.GroupMessageResponseData>;
|
|
7
|
+
groupId: string;
|
|
8
|
+
characterId?: string;
|
|
7
9
|
}
|
|
8
10
|
export declare class OnGroupMessageUpdateEventHandler implements IServerEventHandler {
|
|
9
11
|
static onUpdate: Action1<GroupMessageUpdate>;
|
|
10
|
-
getEventCode():
|
|
12
|
+
getEventCode(): string;
|
|
11
13
|
handle(operationEvent: OperationEvent): void;
|
|
12
14
|
}
|
|
@@ -18,7 +18,7 @@ export declare class NetworkingPeerSocketIOClient extends NetworkingSocketPeerBa
|
|
|
18
18
|
private onDisconnect;
|
|
19
19
|
private onError;
|
|
20
20
|
init(url: string, reconnectDelay: number, pingInterval: number, pingTimeout: number): void;
|
|
21
|
-
protected emit(requestType: RequestType,
|
|
21
|
+
protected emit(requestType: RequestType, role: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
|
|
22
22
|
close(_onSocketDisconnect: Action0): void;
|
|
23
23
|
connect(_onSocketConnect: Action0): void;
|
|
24
24
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Action0 } from "./../../common/Action0";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Action1 } from "./../../common/Action1";
|
|
3
|
+
import { GNHashtable } from "./../../common/GNData";
|
|
4
4
|
import { RequestRole } from "./../../constant/enumType/RequestRole";
|
|
5
5
|
import { RequestType } from "./../../constant/enumType/RequestType";
|
|
6
6
|
import { OperationRequest } from "./../../entity/OperationRequest";
|
|
7
7
|
export declare class SocketPacket {
|
|
8
8
|
obj: any;
|
|
9
|
-
|
|
10
|
-
constructor(obj: any,
|
|
9
|
+
isMsgPack: boolean;
|
|
10
|
+
constructor(obj: any, isMsgPack: boolean);
|
|
11
11
|
}
|
|
12
12
|
export declare abstract class NetworkingSocketPeerBase {
|
|
13
13
|
protected reconnectDelay: number;
|
|
@@ -29,8 +29,8 @@ export declare abstract class NetworkingSocketPeerBase {
|
|
|
29
29
|
connect(_onSocketConnect: Action0): void;
|
|
30
30
|
close(_onSocketDisconnect: Action0): void;
|
|
31
31
|
sendRequestAuthSocket(): void;
|
|
32
|
-
send(requestType: RequestType,
|
|
33
|
-
protected emit(requestType: RequestType,
|
|
32
|
+
send(requestType: RequestType, role: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
|
|
33
|
+
protected emit(requestType: RequestType, role: RequestRole, operationRequest: OperationRequest, authToken: string, secretKey: string, customTags: GNHashtable, gameId: string): void;
|
|
34
34
|
reInitNewSocket(): void;
|
|
35
35
|
setOnConnectHandler(_onConnectHandler: Action0): void;
|
|
36
36
|
setOnDisconnectHandler(_onDisconnectHandler: Action0): void;
|
|
@@ -38,11 +38,9 @@ export declare abstract class NetworkingSocketPeerBase {
|
|
|
38
38
|
removeOnDisconnectHandler(_onDisconnectHandler: Action0): void;
|
|
39
39
|
onConnectHandler(): void;
|
|
40
40
|
onDisconnectHandler(): void;
|
|
41
|
-
setOnEventHandler(_onEventHandler:
|
|
42
|
-
onEventHandler(obj:
|
|
43
|
-
setOnResponseHandler(_onResponseHandler:
|
|
44
|
-
onResponseHandler(obj:
|
|
45
|
-
static fromMsgList(objects: any[]): any[];
|
|
46
|
-
static fromJsonList(objects: any): any[];
|
|
41
|
+
setOnEventHandler(_onEventHandler: Action1<GNHashtable>): void;
|
|
42
|
+
onEventHandler(obj: GNHashtable): void;
|
|
43
|
+
setOnResponseHandler(_onResponseHandler: Action1<GNHashtable>): void;
|
|
44
|
+
onResponseHandler(obj: GNHashtable): void;
|
|
47
45
|
service(): void;
|
|
48
46
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action1 } from "./../../common/Action1";
|
|
2
2
|
import { Action0 } from "./../../common/Action0";
|
|
3
|
-
import {
|
|
3
|
+
import { GNHashtable } from "./../../common/GNData";
|
|
4
4
|
import { OperationEvent } from "./../../entity/OperationEvent";
|
|
5
5
|
import { IServerEventHandler } from "./../handler/IServerEventHandler";
|
|
6
6
|
import { OperationPending } from "./../OperationPending";
|
|
@@ -24,6 +24,6 @@ export declare class SocketPeer extends PeerBase {
|
|
|
24
24
|
setOnEventHandler(_onEventHandler: Action1<OperationEvent>): void;
|
|
25
25
|
send(operationPending: OperationPending): void;
|
|
26
26
|
protected onEnqueue(operationPending: OperationPending): void;
|
|
27
|
-
onEventHandler(obj:
|
|
27
|
+
onEventHandler(obj: GNHashtable): void;
|
|
28
28
|
service(): void;
|
|
29
29
|
}
|