Open Rails

SignalType Members

SignalType overview

Public Instance Constructors

SignalType Overloaded. Initializes a new instance of the SignalType class.

Public Instance Fields

ApproachControlDetails
Name 

Public Instance Properties

AbsUnknown, used at least in Marias Pass route
AspectsList of aspects this signal type can have
DrawStatesName-indexed draw states
FlashTimeOffOff duration for flashing light. (In seconds.)
FlashTimeOnOn duration for flashing light. (In seconds.)
FnTypeFunction type (normal, speed, ...) of this signal type
Lights 
LightTextureNameThe name of the texture to use for the lights
NoGantryThis signal type is not suitable for placement on a gantry
NumClearAhead_MSTSNumber of blocks ahead which need to be cleared in order to maintain a 'clear' indication in front of a train. MSTS calculation
NumClearAhead_ORTSNumber of blocks ahead which need to be cleared in order to maintain a 'clear' indication in front of a train. ORTS calculation
SemaphoreThis is a semaphore signal
SemaphoreInfoNumber of seconds to spend animating a semaphore signal.

Public Instance Methods

def_draw_state This method returns the default draw state for the specified aspect or -1 if none.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type.
GetLeastRestrictiveAspect This method returns the least restrictive aspect for this signal type. [Rob Roeterdink] added for basic signals without script
GetMostRestrictiveAspect This method returns the most restrictive aspect for this signal type.
GetNextLeastRestrictiveState This method returns the next least restrictive aspect from the one specified.
GetSpeedLimitMpS This method returns the lowest speed limit linked to the aspect
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

SignalType Class | Orts.Formats.Msts Namespace