2016-02-25 23:38:19 +01:00
|
|
|
|
|
|
|
local modpath = minetest.get_modpath(minetest.get_current_modname()) .. "/"
|
|
|
|
|
2016-03-05 11:47:35 +01:00
|
|
|
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()
|
2016-03-05 11:47:35 +01:00
|
|
|
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)
|