C# Class OpenBve.Scripting.Signal

Provides scripting access to signals
Show file Open project: leezer3/OpenBVE

Public Methods

Method Description
CurrentAspect ( TrainManager Train, int SectionIndex, bool IsPartOfTrain ) : int

This method returns the current aspect of the selected section

Method Details

CurrentAspect() public static method

This method returns the current aspect of the selected section
public static CurrentAspect ( TrainManager Train, int SectionIndex, bool IsPartOfTrain ) : int
Train TrainManager The train for which we wish to get the section index
SectionIndex int The section to get the aspect for
IsPartOfTrain bool Defines whether we wish to get the section index for the selected train, or for when placed via a .SigF command
return int