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