comparison DependencyLoader/Addon.lua @ 17:f825ccf94a89

fixed an indexing issue in Addon.lua moved most of the code in DependencyLoader.lua to Core.lua, and renamed the former to frontend.lua updated load.xml rearranged stuff in start.lua
author mckenziemc
date Sat, 11 Dec 2010 03:32:04 -0800
parents a46bf694050c
children e7995d599184
comparison
equal deleted inserted replaced
16:1d8898cd1c82 17:f825ccf94a89
182 end 182 end
183 183
184 184
185 function addon:Enable() 185 function addon:Enable()
186 if IsLoggedIn() then 186 if IsLoggedIn() then
187 addonTable.interface:QueueEnable(self.name) 187 addonTable.classes.Core:QueueEnable(self.name)
188 else 188 else
189 addonTable.interface:RawEnableAddOn(self.name) 189 addonTable.classes.Core:RawEnableAddOn(self.name)
190 end 190 end
191 end 191 end
192 192
193 193
194 -- NOTE: only call for LoD, not force-loading 194 -- NOTE: only call for LoD, not force-loading
195 function addon:Load() 195 function addon:Load()
196 assert(self:CanLoD()) 196 assert(self:CanLoD())
197 197
198 addonTable.interface:RawEnableAddOn(self.name) 198 addonTable.classes.Core:RawEnableAddOn(self.name)
199 addonTable.interface:RawLoadAddOn(self.name) 199 addonTable.classes.Core:RawLoadAddOn(self.name)
200 end 200 end
201 201
202 202
203 function addon:ForceLoad() 203 function addon:ForceLoad()
204 assert(self:CanForceLoad()) 204 assert(self:CanForceLoad())
205 -- TODO: make sure force-loading is available at this time 205 -- TODO: make sure force-loading is available at this time
206 206
207 addonTable.interface:RawEnableAddOn(self.name) -- This should cause the game to also load this addon 207 addonTable.Core:RawEnableAddOn(self.name) -- This should cause the game to also load this addon
208 end 208 end
209 209
210 210
211 function addon:GetDependencies() 211 function addon:GetDependencies()
212 -- TODO: consider no-lib embeds as deps? 212 -- TODO: consider no-lib embeds as deps?