18 lines
465 B
Lua
18 lines
465 B
Lua
return function(Baseless)
|
|
Baseless.Needs = {}
|
|
|
|
Baseless.name_of = function(type, name)
|
|
return name or ("baseless-" .. type)
|
|
end
|
|
|
|
Baseless.needs = function(type, name)
|
|
table.insert(Baseless.Needs, {type = type, name = name})
|
|
end
|
|
|
|
Baseless.needs_dependencies = function(dependencies)
|
|
for _, dependency in ipairs(dependencies or {}) do
|
|
Baseless.needs(dependency.type, Baseless.name_of(dependency.type, dependency.name))
|
|
end
|
|
end
|
|
end
|