useInventory 使用指定全局角色的库存
useInventory
类型: MethodDeclaration
所属类: Actor
定义位置: actor.ts
描述
使用指定全局角色的库存
参数 inventory: 全局角色的库存
参数
| 参数名 | 类型 | 描述 | 默认值 | 
|---|---|---|---|
| inventory | Inventory | - | - | 
返回值
类型: void
源代码
位置: 第 1057 行
public useInventory(inventory: Inventory): void {
    if (this.inventory !== inventory) {
      if (!this.savedInventory) {
        this.savedInventory = this.inventory
      }
      this.inventory = inventory
    }
  }
文档生成时间:2025/7/21 20:53:38