pdisc/init.lua
HybridDog b3ce57c5b4 💥
A  .gitignore
A  LICENSE.txt
A  README.md
A  depends.txt
A  faden.lua
A  init.lua
A  parser.lua
A  standardbefehlssatz.lua
A  textures/pdisc.png
2016-11-13 14:42:57 +01:00

20 lines
483 B
Lua

local load_time_start = minetest.get_us_time()
local mpath = minetest.get_modpath"pdisc" .. "/"
pdisc = {
parse = dofile(mpath .. "parser.lua"),
standard_befehlssatz = dofile(mpath .. "standardbefehlssatz.lua"),
create_thread = dofile(mpath .. "faden.lua")
}
local time = (minetest.get_us_time() - load_time_start) / 1000000
local msg = "[pdisc] loaded after ca. " .. time .. " seconds."
if time > 0.01 then
print(msg)
else
minetest.log("info", msg)
end