2018-06-19 10:50:11 -07:00
|
|
|
-- Advtrains interlocking system
|
|
|
|
-- See database.lua for a detailed explanation
|
|
|
|
|
|
|
|
advtrains.interlocking = {}
|
|
|
|
|
2018-12-08 08:12:57 -08:00
|
|
|
advtrains.SHUNT_SPEED_MAX = 6
|
|
|
|
|
2018-10-29 12:06:04 -07:00
|
|
|
function advtrains.interlocking.sigd_equal(sigd, cmp)
|
|
|
|
return vector.equals(sigd.p, cmp.p) and sigd.s==cmp.s
|
|
|
|
end
|
|
|
|
|
|
|
|
|
2018-06-19 10:50:11 -07:00
|
|
|
local modpath = minetest.get_modpath(minetest.get_current_modname()) .. DIR_DELIM
|
|
|
|
|
|
|
|
dofile(modpath.."database.lua")
|
|
|
|
dofile(modpath.."signal_api.lua")
|
|
|
|
dofile(modpath.."demosignals.lua")
|
2018-10-10 12:49:52 -07:00
|
|
|
dofile(modpath.."train_sections.lua")
|
2018-07-04 08:48:33 -07:00
|
|
|
dofile(modpath.."route_prog.lua")
|
2018-07-21 07:31:00 -07:00
|
|
|
dofile(modpath.."routesetting.lua")
|
2018-08-03 10:20:10 -07:00
|
|
|
dofile(modpath.."tcb_ts_ui.lua")
|
2019-01-09 09:03:40 -08:00
|
|
|
dofile(modpath.."route_ui.lua")
|
2018-10-26 10:44:16 -07:00
|
|
|
dofile(modpath.."tool.lua")
|
2018-08-12 08:23:52 -07:00
|
|
|
|
2019-04-16 00:16:44 -07:00
|
|
|
dofile(modpath.."approach.lua")
|
2019-01-09 09:03:40 -08:00
|
|
|
dofile(modpath.."ars.lua")
|
2019-01-24 04:43:22 -08:00
|
|
|
dofile(modpath.."tsr_rail.lua")
|
2018-10-10 12:49:52 -07:00
|
|
|
|
|
|
|
|
2018-08-12 08:23:52 -07:00
|
|
|
minetest.register_privilege("interlocking", {description = "Can set up track sections, routes and signals.", give_to_singleplayer = true})
|