Description
LibBaggage provides a simplified interface to the inventory. Most notably, there are only a handful of events to listen to (most addons using this library will be content with 3 or 4 of the events).
Features
- Watches the inventory, bank and equipment
- Event propagation through the CallbackHandler-1.0 library
- itemTable "data type"
- Contains the location of the item in the form of a bagID and a slotID. The bagID is mostly the same as the bagID of the normal Blizzard API, extended with the values "bank", "keyring" and "equipment" to indicate that the item is not in a bag, but in an inventory slot
- Contains all information to reconstruct a complete tooltip, notably an item link, all jewelIDs, enchantID, uniqueID, etc.
- ItemAdded event whenever an item is added to the inventory
- Arguments: bagID, slotID
- ItemRemoved event whenever an item is removed from the inventory
- Arguments: itemTable of the removed item
Planned Features
- Guildbank support
- Means to make the inventory data persistent across WoW sessions. Still, it is not planned to have LibBaggage save the data by itself. Rather, it will provide means for addons to save the data themselves and provide it back to LibBaggage in a later session.


