Restore LuaATC autocouple interface accidentally lost in 74a2199

During rebase, this part of the autocouple feature must have been accidentally lost
master
orwell96 2021-02-15 16:52:54 +01:00
parent 737eb4987f
commit 5569849401
1 changed files with 12 additions and 0 deletions

View File

@ -96,6 +96,18 @@ function r.fire_event(pos, evtdata, appr_internal)
if not train_id then return false end
train.is_shunt = true
end,
unset_shunt = function()
if not train_id then return false end
train.is_shunt = nil
end,
set_autocouple = function ()
if not train_id then return false end
train.autocouple = true
end,
unset_autocouple = function ()
if not train_id then return false end
train.autocouple = nil
end,
set_line = function(line)
if type(line)~="string" and type(line)~="number" then
return false