Mercurial > wow > inventory
view Classes/ContainerItem.class.lua @ 89:a12d22ef3f39
AceSerializer has been enabled again as it?s used when exporting/importing groups. All other unused libraries are now really removed.
Adjusted debug function to format only when a debug channel is available.
Fixed moving from guild banks, checking if items are locked is different then with banks.
Now unregistering the item locking event so it doesn?t continue to try to move every time an item is switched after the automated cycle has finished. (geeezus, this description is a total overkill)
Fixed item queueing.
Queue all when there?s a group without any items inside no longer crashes.
Removing cached container data after closing a container.
author | Zerotorescue |
---|---|
date | Fri, 07 Jan 2011 22:19:03 +0100 |
parents | 3bec0ea44607 |
children | 67bd5057ecb7 |
line wrap: on
line source
local addon = select(2, ...); -- Define the class addon.ContainerItem = {}; addon.ContainerItem.__index = addon.ContainerItem; -- Construct function addon.ContainerItem:New(id) local self = {}; setmetatable(self, addon.ContainerItem); -- Standard info everything needs self.id = id; self.totalCount = 0; self.locations = {}; return self; end function addon.ContainerItem:AddLocation(container, slot, count) table.insert(self.locations, { container = container, slot = slot, count = count, }); self.totalCount = (self.totalCount + count); return true; end