ccd059aa29
create utility for creating wrapper functions for `minetest` methods.
16 lines
387 B
Lua
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")
|