Open Rails

STFReader.ReadFloatBlock Method

[This is preliminary documentation and subject to change.]

Read an single precision constant from the STF format '( {float_constant} ... )'

public float ReadFloatBlock(
   UNITS validUnits,
   floatdefaultValue
);

Parameters

validUnits
Any combination of the UNITS enumeration, to limit the available suffixes to reasonable values.
defaultValue
the default value if the constant is not found in the block.

Return Value

The STF block with the first {item} converted to a single precision constant.

See Also

STFReader Class | Orts.Parsers.Msts Namespace