Open Rails

STFReader.ReadFloat Method

[This is preliminary documentation and subject to change.]

Read an single precision floating point number {constant_item}

public float ReadFloat(
   UNITS validUnits,
   floatdefaultValue
);

Parameters

validUnits
Any combination of the UNITS enumeration, to limit the available suffixes to reasonable values.
defaultValue
the default value if an unexpected ')' token is found

Return Value

The next {constant_item} from the STF file, with the suffix normalized to OR units.

See Also

STFReader Class | Orts.Parsers.Msts Namespace