Open Rails

STFReader.ReadIntBlock Method

[This is preliminary documentation and subject to change.]

Read an integer constant from the STF format '( {int_constant} ... )'

public int ReadIntBlock(
   intdefaultValue
);

Parameters

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 integer.

See Also

STFReader Class | Orts.Parsers.Msts Namespace