@hyext/types-ext-sdk-hy 3.12.5-beta.2 → 3.13.0-beta.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/index.d.ts +44 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -5980,6 +5980,24 @@ namespace revenue {
|
|
|
5980
5980
|
* @returns 调用结果
|
|
5981
5981
|
*/
|
|
5982
5982
|
function requestOpenCoinConsume(params: OpenCoinConsumeParams): Promise<void>;
|
|
5983
|
+
/**
|
|
5984
|
+
* 开启对局
|
|
5985
|
+
* @param params - 参数
|
|
5986
|
+
* @returns 调用结果
|
|
5987
|
+
*/
|
|
5988
|
+
function startBattle(params: StartBattleParams): Promise<void>;
|
|
5989
|
+
/**
|
|
5990
|
+
* 结束对局
|
|
5991
|
+
* @param params - 参数
|
|
5992
|
+
* @returns 调用结果
|
|
5993
|
+
*/
|
|
5994
|
+
function endBattle(params: EndBattleParams): Promise<void>;
|
|
5995
|
+
/**
|
|
5996
|
+
* 对局心跳
|
|
5997
|
+
* @param params - 参数
|
|
5998
|
+
* @returns 调用结果
|
|
5999
|
+
*/
|
|
6000
|
+
function battleHeartbeat(params: BattleHeartbeatParams): Promise<void>;
|
|
5983
6001
|
}
|
|
5984
6002
|
|
|
5985
6003
|
/**
|
|
@@ -6228,6 +6246,32 @@ type OpenCoinConsumeParams = {
|
|
|
6228
6246
|
preOrderNonce: string;
|
|
6229
6247
|
};
|
|
6230
6248
|
|
|
6249
|
+
/**
|
|
6250
|
+
* 开启对局参数
|
|
6251
|
+
* @property battleId - 对局id
|
|
6252
|
+
* @property [commandUuid] - 互动指令uuid
|
|
6253
|
+
*/
|
|
6254
|
+
type StartBattleParams = {
|
|
6255
|
+
battleId: string;
|
|
6256
|
+
commandUuid?: string;
|
|
6257
|
+
};
|
|
6258
|
+
|
|
6259
|
+
/**
|
|
6260
|
+
* 结束对局参数
|
|
6261
|
+
* @property battleId - 对局id
|
|
6262
|
+
*/
|
|
6263
|
+
type EndBattleParams = {
|
|
6264
|
+
battleId: string;
|
|
6265
|
+
};
|
|
6266
|
+
|
|
6267
|
+
/**
|
|
6268
|
+
* 对局心跳参数
|
|
6269
|
+
* @property battleId - 对局id
|
|
6270
|
+
*/
|
|
6271
|
+
type BattleHeartbeatParams = {
|
|
6272
|
+
battleId: string;
|
|
6273
|
+
};
|
|
6274
|
+
|
|
6231
6275
|
type sentryTags = any;
|
|
6232
6276
|
|
|
6233
6277
|
/**
|