dao::equipment::Change

struct

One item equipped or unequipped, as reported to a callback.

Declared in dao/Equipment.h.

Fields

Field Type  
creature ObjectId = kInvalidObject  
displaced bool = false OnUnequip only: pushed out by an item equipped into its slot.
done bool = false whether the game did it; false if it refused
item ObjectId = kInvalidObject  
slot std::int32_t = 255 The item’s INVENTORY_SLOT_* slot: where it went for an equip, or where it was for an unequip. 255 (INVENTORY_SLOT_INVALID) for none.