# Function: updateInteractiveProperty
▸ updateInteractiveProperty(params
: UpdateInteractivePropertyParams): Promise‹void›
更新交互道具信息
example
// 在头部引入玩家互动模块
import { interactivePropertySystem } from "@timi/mogs-sdk";
...
// 使用
await interactivePropertySystem.updateInteractiveProperty({
keyList: ['1'],
});
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# 参数:
属性 | 类型 | 描述 |
---|---|---|
params | UpdateInteractivePropertyParams | data 传入的对象 |
UpdateInteractivePropertyParams
属性 | 类型 | 描述 |
---|---|---|
keyList | keyof string[] | - |
complete? | Method | 操作完成时(成功或失败),均会调用该回调函数 |
fail? | Method | 操作失败时,调用该回调函数 |
success? | Method | 操作成功时,调用该回调函数 |
# 返回值:
Promise‹void›