1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00
luanti/builtin/sscsm_client/init.lua
2025-05-29 21:11:33 +02:00

33 lines
843 B
Lua

local scriptpath = core.get_builtin_path()
local commonpath = scriptpath .. "common" .. DIR_DELIM
local mypath = scriptpath .. "sscsm_client".. DIR_DELIM
-- Shared between builtin files, but
-- not exposed to outer context
local builtin_shared = {}
-- placeholders
-- FIXME: send actual content defs to sscsm env
function core.get_content_id(name)
return tonumber(name)
end
function core.get_name_from_content_id(id)
return tostring(id)
end
assert(loadfile(commonpath .. "item_s.lua"))(builtin_shared)
assert(loadfile(commonpath .. "register.lua"))(builtin_shared)
assert(loadfile(mypath .. "register.lua"))(builtin_shared)
dofile(commonpath .. "after.lua")
-- TODO: tmp
local function dings()
print(dump(core.get_node_or_nil(vector.zero())))
core.after(1, dings)
end
--~ core.after(0, dings)
print(core.get_current_modname())