mtimer/init.lua

34 lines
902 B
Lua
Raw Normal View History

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
-- @see ./system/load_configuration.lua
2019-02-16 16:45:32 +01:00
mtimer = {
translator = minetest.get_translator('mtimer'),
dialog = {},
meta = {}
2019-02-16 16:45:32 +01:00
}
-- Load configuration
dofile(syspath..'load_configuration.lua')
-- Load formspec functionality
dofile(syspath..'formspec'..DIR_DELIM..'formspec_helpers.lua')
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
-- Load system
2019-02-16 16:45:32 +01:00
dofile(syspath..'chat_command.lua')
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')
dofile(syspath..'register_globalstep.lua')