yingchigamesdk-cocos-v3 25.7.29 → 25.7.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +145 -104
- package/dist/index.js.map +4 -4
- package/dist/ycsdk/GameInterface.d.ts +6 -3
- package/dist/ycsdk/minigame/DebugGame.d.ts +3 -1
- package/dist/ycsdk/minigame/MiniGame.d.ts +4 -1
- package/dist/ycsdk/minigame/PrivacyListener.d.ts +4 -4
- package/dist/ycsdk/nativegame/anroid/AndroidGame.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,22 +1,25 @@
|
|
|
1
|
+
import { Node } from "cc";
|
|
1
2
|
import { BannerType } from "./minigame/BannerType";
|
|
2
3
|
import { InterstitialType } from "./minigame/InterstitialType";
|
|
4
|
+
import { PrivacyListener } from "./minigame/PrivacyListener";
|
|
3
5
|
export interface GameInterface {
|
|
4
6
|
/**
|
|
5
7
|
* 初始化,在游戏开始前调用
|
|
6
8
|
* @param callBack sdk初始化完成回调
|
|
7
9
|
*/
|
|
8
10
|
init(callBack?: any): void;
|
|
11
|
+
showPolicy?(node: Node, callBack: PrivacyListener): void;
|
|
9
12
|
/**
|
|
10
13
|
* 登录
|
|
11
14
|
* @param callBack 登录结果回调
|
|
12
15
|
*/
|
|
13
|
-
login(callBack?: Function): void;
|
|
16
|
+
login?(callBack?: Function): void;
|
|
14
17
|
/**
|
|
15
18
|
* 支付
|
|
16
19
|
* @param params 支付参数
|
|
17
20
|
* @param callBack 支付回调
|
|
18
21
|
*/
|
|
19
|
-
pay(params: string, callBack: Function): void;
|
|
22
|
+
pay?(params: string, callBack: Function): void;
|
|
20
23
|
/**
|
|
21
24
|
* 展示banner广告
|
|
22
25
|
*
|
|
@@ -48,5 +51,5 @@ export interface GameInterface {
|
|
|
48
51
|
* @param params 入参
|
|
49
52
|
* @param callBack 回调
|
|
50
53
|
*/
|
|
51
|
-
customFunc(methodName: string, params: any[], callBack: Function): any;
|
|
54
|
+
customFunc?(methodName: string, params: any[], callBack: Function): any;
|
|
52
55
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { Node } from "cc";
|
|
1
2
|
import { GameInterface } from "../GameInterface";
|
|
2
3
|
import { BannerType } from "./BannerType";
|
|
3
4
|
import { InterstitialType } from "./InterstitialType";
|
|
4
5
|
import { PrivacyListener } from "./PrivacyListener";
|
|
5
6
|
export declare class DebugGame implements GameInterface {
|
|
7
|
+
private privacyKey;
|
|
6
8
|
init(callBack?: any): void;
|
|
7
|
-
showPolicy(node:
|
|
9
|
+
showPolicy(node: Node, callBack: PrivacyListener): void;
|
|
8
10
|
login(callBack?: Function): void;
|
|
9
11
|
pay(params: string, callBack: Function): void;
|
|
10
12
|
showBanner(position: BannerType): void;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { Node } from "cc";
|
|
1
2
|
import { GameInterface } from "../GameInterface";
|
|
2
3
|
import { BannerType } from "./BannerType";
|
|
3
4
|
import { InterstitialType } from "./InterstitialType";
|
|
5
|
+
import { PrivacyListener } from "./PrivacyListener";
|
|
4
6
|
export declare class MiniGame implements GameInterface {
|
|
5
7
|
private channel;
|
|
8
|
+
private privacyKey;
|
|
6
9
|
constructor(platform: any);
|
|
7
10
|
private channelFactory;
|
|
8
11
|
jsonToKeyValue(json: Record<string, any>): string;
|
|
9
12
|
init(callBack?: any): void;
|
|
10
|
-
count: number;
|
|
11
13
|
setAdStateListener(): void;
|
|
14
|
+
showPolicy(node: Node, callBack: PrivacyListener): void;
|
|
12
15
|
login(callBack?: Function): void;
|
|
13
16
|
pay(params: string, callBack: any): void;
|
|
14
17
|
showBanner(position: BannerType): void;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { Node } from "cc";
|
|
1
2
|
import { GameInterface } from "../../GameInterface";
|
|
2
3
|
import { BannerType } from "../../minigame/BannerType";
|
|
3
4
|
import { InterstitialType } from "../../minigame/InterstitialType";
|
|
5
|
+
import { PrivacyListener } from "../../minigame/PrivacyListener";
|
|
4
6
|
export declare class AndroidGame implements GameInterface {
|
|
5
7
|
className: string;
|
|
6
8
|
init(callBack?: any): void;
|
|
7
9
|
login(callBack?: Function): void;
|
|
8
|
-
|
|
10
|
+
showPolicy(node: Node, callBack: PrivacyListener): void;
|
|
9
11
|
showBanner(position: BannerType): void;
|
|
10
12
|
hideBanner(): void;
|
|
11
13
|
showInters(type: InterstitialType): void;
|