Mercurial > wow > inventory
view ContainerItem.class.lua @ 83:6b60f7a1410c
Disabled a bunch of probably unused libraries, will have to verify if Inventorium still runs without any other addon.
Updated todo list.
Probably nolib-creation support.
author | Zerotorescue |
---|---|
date | Thu, 06 Jan 2011 11:04:55 +0100 |
parents | 58617c7827fa |
children |
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