2019-02-16 16:45:32 +01:00
|
|
|
local modpath = minetest.get_modpath('mtimer')..DIR_DELIM
|
|
|
|
local syspath = modpath..'system'..DIR_DELIM
|
|
|
|
|
|
|
|
|
2019-02-22 20:33:42 +01:00
|
|
|
-- Set initial global `mtimer` table
|
|
|
|
--
|
|
|
|
-- @see ./system/formspec/formspec_creation.lua
|
2020-08-16 00:13:24 +02:00
|
|
|
-- @see ./system/load_configuration.lua
|
2019-02-16 16:45:32 +01:00
|
|
|
mtimer = {
|
2020-08-16 00:13:24 +02:00
|
|
|
translator = minetest.get_translator('mtimer'),
|
2019-03-06 18:22:50 +01:00
|
|
|
dialog = {},
|
2020-08-16 00:13:24 +02:00
|
|
|
meta = {}
|
2019-02-16 16:45:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-08-16 00:13:24 +02:00
|
|
|
-- Load configuration
|
|
|
|
dofile(syspath..'load_configuration.lua')
|
|
|
|
|
|
|
|
|
2019-02-21 21:07:35 +01:00
|
|
|
-- Load formspec functionality
|
|
|
|
dofile(syspath..'formspec'..DIR_DELIM..'formspec_helpers.lua')
|
2021-04-02 04:07:40 +02:00
|
|
|
dofile(syspath..'formspec'..DIR_DELIM..'main_menu.lua')
|
2019-02-21 21:07:35 +01:00
|
|
|
dofile(syspath..'formspec'..DIR_DELIM..'real_time_universal.lua')
|
|
|
|
dofile(syspath..'formspec'..DIR_DELIM..'formspec_creation.lua')
|
|
|
|
|
2019-02-22 20:33:42 +01:00
|
|
|
|
2019-02-21 21:07:35 +01:00
|
|
|
-- Load system
|
2019-02-16 16:45:32 +01:00
|
|
|
dofile(syspath..'chat_command.lua')
|
2019-02-22 15:50:32 +01:00
|
|
|
dofile(syspath..'update_timer.lua')
|
2019-02-16 16:45:32 +01:00
|
|
|
dofile(syspath..'on_receive_fields.lua')
|
|
|
|
dofile(syspath..'on_joinplayer.lua')
|
2019-02-21 14:37:58 +01:00
|
|
|
dofile(syspath..'get_times.lua')
|
2019-02-22 14:08:44 +01:00
|
|
|
dofile(syspath..'get_timer_data.lua')
|
2019-02-22 15:50:32 +01:00
|
|
|
dofile(syspath..'register_globalstep.lua')
|