# Variable: itemAttributesMap
• itemAttributesMap(): Promise‹ReadonlyWithExtensions‹ItemAttributesMap››
deprecated
name
物品属性表
description
(已废弃,请直接从BackpackItem实例上的attachedAttributes字段读取其附加属性,或者通过{@link getAttachedAttributesByUid}获取);
example
// 在头部引入附加属性模块
import { attachedAttributeSystem } from "@timi/mogs-sdk";
...
// 使用
const map = await attachedAttributeSystem.itemAttributesMap;
for(const [k, v] of map) {
console.log('物品id:', k);
console.log('物品属性:', v)
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 返回值:
Promise‹ReadonlyWithExtensions‹ItemAttributesMap››