# Class: BackpackItemCountChangeEvent

BackpackItemCountChangeEvent()

背包物品数量更新事件

# Properties

# Readonly currentValue

currentValue: ReadonlyClone‹Long›

Inherited from PropertyUpdateEvent.currentValue

数据改变后的值

Returns: ReadonlyClone‹Long›


# Readonly id

id: Long

物品唯一 ID

Returns: Long


# Readonly itemId

itemId: number

物品 ID

deprecated use typeId instead. shall be removed in 0.4.

Returns: number


# Readonly itemUid

itemUid: Long

物品唯一 ID

deprecated use id instead. shall be removed in 0.4.

Returns: Long


# Readonly positions

positions: keyof BackpackItemPosition[]

该事件所影响的背包及位置

description 若物品的数量减少到 0(对应物品被消耗完毕),则该物品会在所属背包中移除,此时这里的列表表示移除前该物品的位置信息;

description 若物品的数量从 0 开始增加(对应物品新增),则该物品会被添加到所属背包中,此时这里的列表表示添加后该物品的位置信息;

Returns: keyof BackpackItemPosition[]


# Readonly previousValue

previousValue: ReadonlyClone‹Long›

Inherited from PropertyUpdateEvent.previousValue

数据改变前的值

Returns: ReadonlyClone‹Long›


# Readonly type

type: BackpackItemCountChangeEventType

Inherited from PropertyUpdateEvent.type

事件类型,由具体的事件构造时提供

Returns: BackpackItemCountChangeEventType


# Readonly typeId

typeId: number

物品 ID

Returns: number