Add set_aspect function
This allows incorporating signals implementing the signal API in LuaAutomation projects Note that it circumvents TCB assignments (a signal assigned to a TCB can be set to green even if no route is set
This commit is contained in:
parent
f90a7a77ef
commit
4eb7531cc5
@ -211,6 +211,10 @@ if advtrains.interlocking then
|
||||
local pos = atlatc.pcnaming.resolve_pos(signal)
|
||||
return advtrains.interlocking.signal_get_aspect(pos)
|
||||
end
|
||||
static_env.set_aspect = function(signal, asp)
|
||||
local pos = atlatc.pcnaming.resolve_pos(signal)
|
||||
return advtrains.interlocking.signal_set_aspect(pos)
|
||||
end
|
||||
end
|
||||
|
||||
for _, name in pairs(safe_globals) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user