# Class: ItemWithAttributes

ItemWithAttributes()

带有属性的物品

# Constructors

# constructor

+ new ItemWithAttributes(itemType: number, attachedAttributes: AttachedAttributeMap): ItemWithAttributes

# 参数:

属性 类型
itemType number
attachedAttributes AttachedAttributeMap

AttachedAttributeMap: Map‹number, AttachedAttribute , AttachedAttribute结构

属性 类型 描述
initValue Long 初始值
upgradePreview UpgradePreview 升级相关信息
value Long 属性值
upgrade Method 属性升级

# 返回值:

ItemWithAttributes

# Properties

# attachedAttributes

attachedAttributes: AttachedAttributeMap

物品附加属性表(以属性id为key值)

Returns: AttachedAttributeMap


# itemType

itemType: number

物品类型(只有等于0时,才是关联背包中的物品)

Returns: number