No edit summary |
No edit summary |
||
Line 21: | Line 21: | ||
model = { |
model = { |
||
Job = { |
Job = { |
||
− | + | Unit = require("Module:Data/Model/Job") |
|
− | atkskl = {"String", dataRef="MasterParam/Skill"}, |
||
− | fixabl = {"String", dataRef="MasterParam/Ability"}, |
||
} |
} |
||
}, |
}, |
Revision as of 06:16, 10 November 2019
Documentation for this module may be created at Module:Data/Model/doc
-- This models all the data pages, in how they declare, store, query and render
return {
nodes = {
MasterParam = {
nodes = {
Unit = {
model = {
Unit = require("Module:Data/Model/Unit")
},
},
JobSet = {
model = {
JobSet = {
iname = "String",
job = {"String", dataRef="MasterParam/Job"},
lrare = "Integer",
}
},
},
Job = {
model = {
Job = {
Unit = require("Module:Data/Model/Job")
}
},
},
Ability = {
model = {
Ability = require("Module:Data/Model/Ability")
},
},
Skill = {
model = {
Skill = require("Module:Data/Model/Skill")
},
},
Buff = {
model = {
Buff = require("Module:Data/Model/Buff")
},
},
Cond = {
model = {
Conditions = require("Module:Data/Model/Cond")
},
},
Artifact = {
model = {
Artifact = require("Module:Data/Model/Artifact")
},
},
ConceptCard = {
model = {
ConceptCard = require("Module:Data/Model/ConceptCard")
},
},
Item = {
model = {
Item = require("Module:Data/Model/Item")
},
},
Recipe = {
model = {
Recipe = require("Module:Data/Model/Recipe")
},
},
},
},
},
}
-- nodes = function(k) return ({
-- Unit = {
-- test = "blah",
-- },
-- })[k] end,