Open Rails

STFReader.ReadBoolBlock Method

[This is preliminary documentation and subject to change.]

Reads the first item from a block in the STF format '( {double_constant} ... )' and return true if is not-zero or 'true'

public bool ReadBoolBlock(
   bool defaultValue
);

Parameters

defaultValue
the default value if a item is not found in the block.

Return Value

true - If the first {item} in the block is non-zero or 'true'.

false - If the first {item} in the block is zero or 'false'.

See Also

STFReader Class | Orts.Parsers.Msts Namespace