global_exchange/init.lua

15 lines
437 B
Lua
Raw Normal View History

2016-02-25 23:38:19 +01:00
local modpath = minetest.get_modpath(minetest.get_current_modname()) .. "/"
local exchange = (dofile(modpath .. "exchange.lua")).open_exchange(
minetest.get_worldpath() .. "/global_exchange.db"
)
2016-02-25 23:38:19 +01:00
minetest.register_on_shutdown(function()
exchange:close()
2016-02-25 23:38:19 +01:00
end)
assert(loadfile(modpath .. "atm.lua"))(exchange)
assert(loadfile(modpath .. "exchange_machine.lua"))(exchange)
2016-02-26 04:47:05 +01:00
assert(loadfile(modpath .. "digital_mailbox.lua"))(exchange)