Open Rails

Simulator Members

Simulator overview

Public Static Methods

XNAMatrixFromMSTSCoordinates The front end of a railcar is at MSTS world coordinates x1,y1,z1 The other end is at x2,y2,z2 Return a rotation and translation matrix for the center of the railcar.

Public Instance Constructors

Simulator Constructor

Public Instance Fields

Activity
ActivityFileName
ActivityRun
AI
AutoGenDictionary
BasePath
BreakCouplers
CabRotating
CarSpawnerFile
CarVibrating
ClockTime "Time of day" clock value (in seconds) for the simulation. Starts at activity start time and may increase, at GameSpeed, or jump forwards or jump backwards.
conFileName
Confirmer
DayAmbientLight
ExploreConFile
ExplorePathFile
FuelManager
GameSpeed
GameTime Monotonically increasing time value (in seconds) for the simulation. Starts at 0 and only ever increases, at GameSpeed. Does not change if game is Paused.
HazzardManager
InControl
InitialTileX
InitialTileZ
IsAutopilotMode
LevelCrossings
NameDictionary
OriginalPlayerTrain
orRouteConfig
patFileName
PathName
Paused
PlayerLocomotive Reference to the InterlockingSystem object, responsible for managing signalling and interlocking.
PlayerPath
playerSwitchOngoing
RailDriver
RDB
RouteName
RoutePath
RoutePathName
ScriptManager
Season
selectedAsPlayer
Settings
Signals
SoundNotify
soundProcessWorking
StartReference
SuperElevationGauge
SuperElevationMinLen
TDB
TimetableFileName
TimetableMode
TrainDictionary
Trains
TRK
TRP
TSectionDat
updaterWorking
UseAdvancedAdhesion
UseSuperElevation
Weather

Public Instance Methods

CheckForCoupling Scan other trains
DeriveLogFile Derive log-file name from route path and activity name
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetAutoGenTTTrainByNumber Get Autogenerated train by number
GetElapsedClockSeconds Convert and elapsed real time into clock time based on simulator running speed and paused state.
GetHashCode (inherited from Object)Serves as a hash function for a particular type.
GetType (inherited from Object)Gets the type of the current instance.
InitialPlayerLocomotive Which locomotive does the activity specified for the player.
Restore
Save
SetActivity
SetExplore
SetPlayerLocomotive
Start
StartTimetable
Stop
ToString (inherited from Object)Returns a string that represents the current object.
UncoupleBehindOverloaded.
UncoupleBehindTT
Update Update the simulator state elapsedClockSeconds represents the time since the last call to Simulator.Update Executes in the UpdaterProcess thread.

Protected Instance Methods

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

See Also

Simulator Class | ORTS Namespace