Open Rails

SignalDrawState.Comparer Method

[This is preliminary documentation and subject to change.]

Comparator function for ordering signal draw states

public static int Comparer(
   SignalDrawState drawStateA,
   SignalDrawState drawStateB
);

Parameters

drawStateA
first draw state to compare
drawStateB
second draw state to compare

Return Value

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

See Also

SignalDrawState Class | Orts.Formats.Msts Namespace