格式
typescript
NetConversation.ChangeCurrencyAmount(type, diff)所属类: NetConversation
描述
编辑该 NetConversation 储存的货币的改变量。
参数
| 参数名 | 类型 | 描述 |
|---|---|---|
| type | string | 货币类型 |
| diff | number | 改变量 |
返回值
| 类型 | 描述 |
|---|---|
Promise<CurrencyOperationResult> | 货币操作结果 |
代码示例
typescript
NetServer.on_converastion_connect = async (conv: NetConversation) => {
const result = await conv.ChangeCurrencyAmount("CurrencyType", 100);
}