comparison WorldPlan.lua @ 18:08b03bcdfeac

ClassPlan: - Significant load time improvements in the order hall. * Data events are spammed gratuitously at load-in, so any sort of operation that results should be done from a delayed enclosure. In this case: using a self-destructing C_Timer identified by the function handle, and setting a flag that frame scripts can respond to.
author Nenue
date Mon, 24 Oct 2016 18:23:06 -0400
parents 8b1e8ba5753d
children 4a7e89bffbcb
comparison
equal deleted inserted replaced
17:594692f36b5b 18:08b03bcdfeac
376 WorldPlanData.key = (WorldPlanData.key or 0) + 1 376 WorldPlanData.key = (WorldPlanData.key or 0) + 1
377 self.db = WorldPlanData 377 self.db = WorldPlanData
378 self.db.WorldQuests = self.db.WorldQuests or {} 378 self.db.WorldQuests = self.db.WorldQuests or {}
379 db = self.db 379 db = self.db
380 for k,v in pairs(defaults) do 380 for k,v in pairs(defaults) do
381 --[===[@non-debug@
382 if not db[k] then
383 db[k] = v
384 end
385
386 --@end-non-debug@]===]
387 --@debug@
381 db[k] = v 388 db[k] = v
389 --@end-debug@
382 end 390 end
383 391
384 self.currentMapID = GetCurrentMapAreaID() 392 self.currentMapID = GetCurrentMapAreaID()
385 393
386 for i, module in ipairs(self.modules) do 394 for i, module in ipairs(self.modules) do