Ticket #4239: fix_aura_loading_order_v1.patch
File fix_aura_loading_order_v1.patch, 1.2 KB (added by , 8 years ago) |
---|
-
binaries/data/mods/public/simulation/components/DataTemplateManager.js
DataTemplateManager.prototype.Schema = 8 8 9 9 DataTemplateManager.prototype.Init = function() 10 10 { 11 11 this.allTechs = {}; 12 12 this.allAuras = {}; 13 var techNames = this.ListAllTechs(); 14 for (var i in techNames) 15 this.GetTechnologyTemplate(techNames[i]); 13 14 for (let techName of this.ListAllTechs()) 15 this.GetTechnologyTemplate(techName); 16 17 for (let auraName of this.ListAllAuras()) 18 this.GetAuraTemplate(auraName); 16 19 }; 17 20 18 21 DataTemplateManager.prototype.GetTechnologyTemplate = function(template) 19 22 { 20 23 if (!this.allTechs[template]) … … DataTemplateManager.prototype.GetAuraTem 42 45 DataTemplateManager.prototype.ListAllTechs = function() 43 46 { 44 47 return Engine.FindJSONFiles("technologies", true); 45 48 }; 46 49 50 DataTemplateManager.prototype.ListAllAuras = function() 51 { 52 return Engine.FindJSONFiles("auras", true); 53 }; 54 47 55 DataTemplateManager.prototype.GetAllTechs = function() 48 56 { 49 57 return this.allTechs; 50 58 }; 51 59