comparison Classes/ContainerItem.class.lua @ 117:239e25a058c7

Implemented mail refilling support. Respecting the MailAddonBusy global when opening so addons like MailOpener shouldn?t interfere.
author Zerotorescue
date Sat, 15 Jan 2011 13:15:16 +0100
parents 41f0689dfda1
children dc6f405c1a5d
comparison
equal deleted inserted replaced
116:8356e5acefdc 117:239e25a058c7
4 4
5 addon.ContainerItem = {}; 5 addon.ContainerItem = {};
6 addon.ContainerItem.__index = addon.ContainerItem; 6 addon.ContainerItem.__index = addon.ContainerItem;
7 7
8 -- Construct 8 -- Construct
9 function addon.ContainerItem:New(id) 9 function addon.ContainerItem:New()
10 local self = {}; 10 local self = {};
11 11
12 setmetatable(self, addon.ContainerItem); 12 setmetatable(self, addon.ContainerItem);
13 13
14 -- Standard info everything needs 14 -- Standard info everything needs
15 self.id = id;
16 self.totalCount = 0; 15 self.totalCount = 0;
17 self.locations = {}; 16 self.locations = {};
18 17
19 return self; 18 return self;
20 end 19 end