# Interface: BackpackItemCountChangeEventHandler

▸ (this: void, event: BackpackItemCountChangeEvent): void

背包物品数量更新 事件处理函数

# 参数:

属性 类型
this void
event BackpackItemCountChangeEvent

BackpackItemCountChangeEvent

属性 类型 描述
currentValue ReadonlyClone‹Long› 数据改变后的值
id Long 物品唯一 ID
itemId number 物品 ID
itemUid Long 物品唯一 ID
positions keyof BackpackItemPosition[] (事件发生时)该物品所属的背包及其位置
previousValue ReadonlyClone‹Long› 数据改变前的值
type BackpackItemCountChangeEventType 事件类型,由具体的事件构造时提供
typeId number 物品 ID

# 返回值:

void