blockgame/mods/bg_api/init.lua
trans_soup ccd059aa29 generalize creating wrappers for built-ins.
create utility for creating wrapper functions for `minetest` methods.
2023-10-13 09:19:13 +02:00

16 lines
387 B
Lua

local load_file = function (filename)
return dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/" .. filename .. ".lua")
end
rawset(_G, "load_file", load_file)
local blockgame = {}
rawset(_G, "blockgame", blockgame)
load_file("utils_table")
load_file("utils_stringify")
load_file("utils_random")
load_file("utils_vector")
load_file("utils_node")
load_file("wrappers")