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