跳到主要内容

useInventory 使用指定全局角色的库存

useInventory

类型: MethodDeclaration

所属类: Actor

定义位置: actor.ts

描述

使用指定全局角色的库存

参数 inventory: 全局角色的库存

参数

参数名类型描述默认值
inventoryInventory--

返回值

类型: void

源代码

位置: 第 1057 行

public useInventory(inventory: Inventory): void {
if (this.inventory !== inventory) {
if (!this.savedInventory) {
this.savedInventory = this.inventory
}
this.inventory = inventory
}
}

文档生成时间:2025/7/7 12:07:06