跳到主要内容

getList 获取库存资产列表

getList​

类型: MethodDeclaration

所属类: Inventory

定义位置: actor.ts

描述​

获取库存资产列表

参数 id: 资产文件ID

返回值:物品或装备列表

参数​

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

返回值​

类型: Array<Item | Equipment> | undefined

物品或装备列表

源代码​

位置: 第 4536 行

public getList(id: string): Array<Item | Equipment> | undefined {
return this.idMap[id]
}

文档生成时间:2026/2/1 16:51:38