2022-02-10 16:32:53 -08:00
|
|
|
creatura = {}
|
|
|
|
|
|
|
|
local path = minetest.get_modpath("creatura")
|
|
|
|
|
|
|
|
dofile(path.."/api.lua")
|
2022-03-25 04:09:01 -07:00
|
|
|
dofile(path.."/pathfinder.lua")
|
2022-02-10 16:32:53 -08:00
|
|
|
dofile(path.."/methods.lua")
|
|
|
|
|
|
|
|
-- Optional Files --
|
|
|
|
|
|
|
|
-- Optional files can be safely removed
|
|
|
|
-- by game developers who don't need the
|
|
|
|
-- extra features
|
|
|
|
|
|
|
|
local function load_file(filepath, filename)
|
|
|
|
if io.open(filepath .. "/" .. filename, "r") then
|
|
|
|
dofile(filepath .. "/" .. filename)
|
|
|
|
else
|
|
|
|
minetest.log("action", "[Creatura] The file " .. filename .. " could not be loaded.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
load_file(path, "boids.lua")
|
|
|
|
load_file(path, "spawning.lua")
|