From d837e7e5e9d2d6de7903e91b3efc36e0dd032b92 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Fri, 24 Aug 2018 22:39:13 +0200 Subject: Add LuaAutomation interface functions for interlocking routesetting and aspect requesting. This allows to incorporate interlocking to automated systems --- advtrains_interlocking/route_prog.lua | 2 +- advtrains_interlocking/routesetting.lua | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'advtrains_interlocking') diff --git a/advtrains_interlocking/route_prog.lua b/advtrains_interlocking/route_prog.lua index f14ad60..0283bf5 100644 --- a/advtrains_interlocking/route_prog.lua +++ b/advtrains_interlocking/route_prog.lua @@ -364,5 +364,5 @@ minetest.register_chatcommand("at_rp_discard", --TODO on route setting --- unify luaautomation get/setstate interface to the core -- routes should end at signals. complete route setting by punching a signal, and command as exceptional route completion +-- Create simpler way to advance a route to the next tcb/signal on simple sections without turnouts diff --git a/advtrains_interlocking/routesetting.lua b/advtrains_interlocking/routesetting.lua index 4e32b10..66f2d2b 100644 --- a/advtrains_interlocking/routesetting.lua +++ b/advtrains_interlocking/routesetting.lua @@ -20,13 +20,6 @@ ilrs.rte_callbacks = { lck = {} } --- Requests the given route --- This function will try to set the designated route. --- If this is not possible, route is inserted in the subscriber list for --- the problematic lock points -function ilrs.request_route(signal, tcbs, routeid) - -end -- main route setting. First checks if everything can be set as designated, -- then (if "try" is not set) actually sets it -- cgit v1.2.3