Let Auto bring the back of the train to 0, hand-set or not

Auto now clears the hand-set marks before picking the couplers and is
available on the last vehicle too.
This commit is contained in:
maj00r
2026-10-04 18:15:01 +02:00
parent b4ae9164bb
commit 384d8c1bca
8 changed files with 33 additions and 7 deletions

View File

@@ -544,6 +544,18 @@ public sealed class Consist : IReadOnlyList<ConsistItem>
Raise();
}
/// <summary>
/// The Auto button: couplers picked afresh for the whole consist, hand-set ones
/// included, so the back of the train is 0 again.
/// </summary>
public void AutoCouple()
{
foreach (var car in Flatten())
car.CouplerSetByHand = false;
AutoConnectAll();
}
public void AutoConnectAll()
{
var flat = Flatten();