Skip to content

格式

typescript
NetDatabase.ChangeGlobalAmount(type, diff)

所属类: NetDatabase

描述

编辑NetDatabase中货币数量。

参数

参数名类型描述
typestring货币类型
diffnumber改变量

返回值

类型描述
Promise<CurrencyOperationResult>

代码示例

typescript
NetServer.on_converastion_connect = async (conv: NetConversation) => {
    const result = await NetDatabase.ChangeGlobalAmount("type", 100);
}