We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37a9bc3 commit a37e1d6Copy full SHA for a37e1d6
Source/Orts.Simulation/Simulation/RollingStocks/MSTSWagon.cs
@@ -1527,6 +1527,14 @@ public override void Restore(BinaryReader inf)
1527
AuxPowerOn = true;
1528
}
1529
1530
+ /// <summary>
1531
+ /// Read the coupler state(s) from a save stream.
1532
+ /// </summary>
1533
+ /// <remarks>
1534
+ /// Has no side effects besides advancing the save stream, thus avoiding any shared-state pitfalls.
1535
+ /// </remarks>
1536
+ /// <param name="inf">The save stream.</param>
1537
+ /// <returns>A list of newly restored <see cref="MSTSCoupling"/> instances.</returns>
1538
private static IEnumerable<MSTSCoupling> ReadCouplersFromSave(BinaryReader inf)
1539
{
1540
var n = inf.ReadInt32();
0 commit comments