Open Rails

SignalLight.Comparer Method

[This is preliminary documentation and subject to change.]

Comparator function for ordering signal lights

public static int Comparer(
   SignalLight lightA,
   SignalLight lightB
);

Parameters

lightA
first light to compare
lightB
second light to compare

Return Value

integer describing whether first light needs to be sorted before second light (so less than 0, 0, or larger than 0)

See Also

SignalLight Class | Orts.Formats.Msts Namespace