build a list of all of the stairsplus slab/stair/etc... shapes (#70)

for other mods to reference.
This commit is contained in:
Vanessa Ezekowitz
2017-02-23 11:12:36 -05:00
committed by Hugo Locurcio
parent 5f35766ed0
commit e9c6cef4dd
6 changed files with 22 additions and 0 deletions

View File

@ -219,6 +219,10 @@ local slopes_defs = {
},
}
for k,v in pairs(slopes_defs) do
table.insert(stairsplus.shapes_list, { "slope_", k })
end
function stairsplus:register_slope_alias(modname_old, subname_old, modname_new, subname_new)
local defs = stairsplus.copytable(slopes_defs)
for alternate, def in pairs(defs) do