smart_villages/init.lua

44 lines
1.4 KiB
Lua
Raw Normal View History

2018-04-05 02:16:55 -07:00
local init = os.clock()
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "[MOD] "..minetest.get_current_modname()..": loading")
else
print("[MOD] "..minetest.get_current_modname()..": loading")
end
2020-04-23 06:47:24 -07:00
smart_villages={
modpath=minetest.get_modpath("smart_villages"),
2017-06-02 07:42:35 -07:00
debug_logging=true,
2017-06-02 07:20:34 -07:00
func = {}
2017-05-11 07:55:13 -07:00
}
--helpers
2020-04-23 06:47:24 -07:00
dofile(smart_villages.modpath.."/pathfinder.lua")
dofile(smart_villages.modpath.."/forms.lua")
dofile(smart_villages.modpath.."/homes.lua")
--base
2020-04-23 06:47:24 -07:00
dofile(smart_villages.modpath.."/api.lua")
dofile(smart_villages.modpath.."/register.lua")
dofile(smart_villages.modpath.."/commanding_sceptre.lua")
2018-01-12 07:41:47 -08:00
2020-04-23 06:47:24 -07:00
dofile(smart_villages.modpath.."/deprecated.lua")
2018-05-19 06:54:58 -07:00
2017-05-11 07:55:13 -07:00
--jobs
2020-04-23 06:47:24 -07:00
dofile(smart_villages.modpath.."/jobs/util.lua")
dofile(smart_villages.modpath.."/jobs/empty.lua")
2018-01-13 06:45:17 -08:00
2020-04-23 06:47:24 -07:00
dofile(smart_villages.modpath.."/jobs/follow_player.lua")
dofile(smart_villages.modpath.."/jobs/plant_collector.lua")
dofile(smart_villages.modpath.."/jobs/woodcutter.lua")
2018-01-12 07:41:47 -08:00
--testing jobs
2020-04-23 06:47:24 -07:00
dofile(smart_villages.modpath.."/jobs/torcher.lua")
dofile(smart_villages.modpath.."/jobs/snowclearer.lua")
2017-05-11 07:55:13 -07:00
--ready
2018-04-05 02:16:55 -07:00
local time_to_load= os.clock() - init
if minetest.settings:get_bool("log_mods") then
minetest.log("action", string.format("[MOD] "..minetest.get_current_modname()..": loaded in %.4f s", time_to_load))
else
print(string.format("[MOD] "..minetest.get_current_modname()..": loaded in %.4f s", time_to_load))
2017-05-11 07:55:13 -07:00
end