2023-05-10 23:39:08 +00:00
|
|
|
ebiometrees.registered_trees = {}
|
|
|
|
|
2023-12-14 11:05:44 +00:00
|
|
|
function ebiometrees.register_tree(name, treespec)
|
|
|
|
ebiometrees.registered_trees[name] = treespec
|
2023-05-10 23:39:08 +00:00
|
|
|
ebiometrees.register_subnodes(name)
|
|
|
|
end
|
|
|
|
|
|
|
|
function ebiometrees.register_subnodes(tree_name)
|
|
|
|
local modname = tree_name:match("([^:]*):")
|
|
|
|
local basename = tree_name:match(":([^:]+)")
|
2023-12-14 11:05:44 +00:00
|
|
|
local treespec = ebiometrees.registered_trees[tree_name]
|
|
|
|
ebiometrees.register_tree_sapling(modname, basename, treespec)
|
|
|
|
ebiometrees.register_tree_sprout(modname, basename, treespec)
|
|
|
|
ebiometrees.register_tree_leaves(modname, basename, treespec)
|
|
|
|
ebiometrees.register_tree_trunks(modname, basename, treespec)
|
2023-05-10 23:39:08 +00:00
|
|
|
end
|
2023-12-14 11:05:44 +00:00
|
|
|
|
|
|
|
function ebiometrees.get_tree_leaves(tree_name)
|
|
|
|
return tree_name.."_leaves"
|
|
|
|
end
|
|
|
|
|
|
|
|
|