Module:Builder/Data/Main

--**************************************************** --** Pulls all the other data into one table       ** --** that can be cached by the main code. ** --**                                               ** --**  Should be no real need to edit this. ** --****************************************************

local h = require('Module:Builder/Data/Header') -- Element types local t = h.t -- research types local rt = h.rt -- local stat types local st = h.st -- local strategic resourse types local sr = h.sr -- local tip types local tip = h.tip -- local tipdefaults local tipDefaults = h.tipDefaults --*************************** --** Concept Definitions  ** --*************************** local concepts = require('Module:Builder/Data/Concepts')

--****************************** --** Weapon Mod Definitions  ** --****************************** local wm = require('Module:Builder/Data/WeaponMods')

--************************ --** Tech Definitions  ** --************************ local tech = require('Module:Builder/Data/Tech') local techGroups = require('Module:Builder/Data/TechGroups')

--************************ --** Misc Definitions  ** --************************ local misc = require('Module:Builder/Data/Misc')

local formatting = require('Module:Builder/Data/Formatting')

local leaders = require('Module:Builder/Data/Leaders')

--**************************** --** Master Table to Return ** --**************************** local p = { Sections = {'Concepts', 'WeaponMods', 'Aliases', 'Tech', 'Misc', 'TechGroups', 'Skills', 'Traits'},

TipTypes = tip, TipDefaults = formatting.tipDefaults, StatLines = formatting.statLines, TableDefs = formatting.tableDefs, Templates = formatting.templates, TechGroups = techGroups,

Concepts = concepts, WeaponMods = wm, Tech = tech, Aliases = wm.Aliases, Misc = misc, Skills = leaders.skills, Traits = leaders.traits }

for _, sect in ipairs(p.Sections) do   if sect ~= 'Aliases' then for key, e in pairs(p[sect]) do           e.key = key end end end

return p