Mercurial > wow > cyborg-mmo7
changeset 17:e4dec2d465f5
Removed the Load methods in WowObjects, they were never called (and likely broken).
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Thu, 25 Apr 2013 01:30:05 +0000 |
parents | a6f4c8f86130 |
children | cccc7661a2e6 |
files | WowObjects.lua |
diffstat | 1 files changed, 0 insertions(+), 33 deletions(-) [+] |
line wrap: on
line diff
--- a/WowObjects.lua Thu Apr 25 01:30:00 2013 +0000 +++ b/WowObjects.lua Thu Apr 25 01:30:05 2013 +0000 @@ -54,27 +54,6 @@ DoNothing = function() end, - Load = function(object) - if type == "item" then - object = CyborgMMO_WowItem.Load(object) - elseif type == "macro" then - object = CyborgMMO_WowMacro.Load(object) - elseif type == "spell" then - object = CyborgMMO_WowSpell.Load(object) - elseif type == "petaction" then - object = CyborgMMO_WowSpell.Load(object) - -- elseif type == "merchant" then - -- object = SlotMerchant.new(detail, subdetail) - elseif type == "companion" then - object = CyborgMMO_WowCompanion.Load(object) - elseif type == "equipmentset" then - object = CyborgMMO_WowEquipmentSet.Load(object) - else - object = CyborgMMO_WowObject.new(type, nil, nil) - end - return object - end, - -- Static Methods -- Create = function(objectType, detail, subdetail) local object @@ -267,13 +246,6 @@ return self end, - - Load = function(object) - local o = WowSpell.new(object.Type, object.Detail, object.Subdetail) - o.Name = object.Name - o.Texture = object.Texture - return o - end, } -- WowMacro Class -- @@ -345,11 +317,6 @@ return self end, - - Load = function(object) - local o = WowCompanion.new(object.index, object.SubType) - return o - end, } -- WowMerchant Class --