Enum libraildriver::Value
source · [−]pub enum Value {
Show 58 variants
Reverser,
Throttle,
CombinedThrottle,
GearLever,
TrainBrake,
LocomotiveBrake,
DynamicBrake,
EmergencyBrake,
HandBrake,
WarningSystemReset,
StartStopEngine,
Horn,
Wipers,
Sander,
Headlights,
Pantograph,
FireboxDoor,
ExhaustInjectorSteam,
ExhaustInjectorWater,
LiveInjectorSteam,
LiveInjectorWater,
Damper,
Blower,
Stoking,
CylinderCock,
Waterscoop,
SmallCompressor,
AWS,
AWSReset,
Startup,
Speedometer,
PromptSave,
ToggleLabels,
Toggle2DMap,
ToggleHud,
ToggleQut,
Pause,
DriverGuide,
ToggleRvNumber,
DialogAssignment,
SwitchJunctionAhead,
SwitchJunctionBehind,
LoadCargo,
UnloadCargo,
PassAtDangerAhead,
PassAtDangerBehind,
ManualCouple,
CabCamera,
FollowCamera,
HeadOutCamera,
RearCamera,
TrackSideCamera,
CarriageCamera,
CouplingCamera,
YardCamera,
SwitchToNextFrontCab,
SwitchToNextRearCab,
FreeCamera,
}
Expand description
The value you wish to target for an operation.
Variants
Reverser
The current reverser setting (F/N/R). Usually:
1
: F0
: N-1
: R
Throttle
The current throttle setting, usually between 0
and 100
. For locomotives and units with
a separate throttle and brake control.
CombinedThrottle
The current combined throttle/brake setting, usually between -100
and 100
. For
locomotives and units with a combined throttle and brake.
GearLever
The current gear, for trains fitted.
TrainBrake
The train brake lever. Usually between 0
and 100
.
LocomotiveBrake
The locomotive brake lever. Usually between 0
and 100
.
DynamicBrake
The dynamic brake lever. Usually between 0
and 100
.
EmergencyBrake
The emergency brake button. Usually operated by setting to 1
.
HandBrake
The hand brake. Usually operated by setting to 1
.
WarningSystemReset
The warning system reset button. Usually operated by setting to 1
.
StartStopEngine
The engine start/stop button. Usually operated by setting to 1
.
Horn
The horn lever. Usually operated by setting to 1
.
Wipers
The wipers switch. Usually operated by setting to 1
.
Sander
The sander. Usually operated by setting to 1
.
Headlights
The headlights. Often operated by setting to 1
.
Pantograph
The pantograph switch. Usually raised by setting to 1
.
FireboxDoor
The firebox door. Usually opened by setting to 1
.
ExhaustInjectorSteam
The exhaust-based steam injector. Usually between 0
and 100
.
ExhaustInjectorWater
The exhaust-based water injector. Usually between 0
and 100
.
LiveInjectorSteam
The live steam injector. Usually between 0
and 100
.
LiveInjectorWater
The live water injector. Usually between 0
and 100
.
Damper
The damper. Usually actuated between 0
and 100
.
Blower
The blower valve. Usually opened between 0
and 100
.
Stoking
Stoking. Usually stoking when set to 1
.
CylinderCock
The cylinder cocks. Usually opened when set to 1
.
Waterscoop
The waterscoop. Usually operated when set to 1
.
SmallCompressor
Currently undocumented.
AWS
Get only: The state of the AWS.
AWSReset
Set only: The AWS reset button, depressed when set to 1
.
Startup
Whether the unit is in startup
Speedometer
Get only: The current speed of the unit.
PromptSave
The save event, usually triggered by F2
, triggered when set to 1
.
ToggleLabels
Toggle labels, triggered when set to 1
.
Toggle2DMap
The 2D Map, usually triggered by 9
, triggered when set to 1
.
ToggleHud
Toggle the HUD visibilty, usually triggered by F3
or F4
, triggered when set to 1
.
ToggleQut
Currently undocumented.
Pause
Pause the game, triggered when set to 1
.
DriverGuide
Currently undocumented.
ToggleRvNumber
Show the rail vehicle number, enabled when set to 1
.
DialogAssignment
Close the dialog given to you by an assignment in a scenario.
SwitchJunctionAhead
Switch the set of points to the front of the train, triggered when set to 1
.
SwitchJunctionBehind
Switch the set of points to the rear of the train, triggered when set to 1
.
LoadCargo
The load cargo event, triggered when set to 1
.
UnloadCargo
The unload cargo action, triggered when set to 1
.
PassAtDangerAhead
Request to pass a signal at danger to the front of the train, usually triggered by Tab
,
triggered when set to 1
.
PassAtDangerBehind
Request to pass a signal at danger to the rear of the train, usually triggered by
Shift Tab
, triggered when set to 1
.
ManualCouple
Manual coupling, triggered when set to 1
.
CabCamera
The cab camera, usually operated by pressing 1
, switched to by setting to 1
.
FollowCamera
The follow camera, usually operated by pressing 2
, switched to by setting to 1
.
HeadOutCamera
The head-out-window camera, usually operated by pressing Shift 2
, switched to by setting
to 1
.
RearCamera
The rear camera, usually operated by pressing 3
, switched to by setting to 1
.
TrackSideCamera
The track-side camera, usually operated by pressing 4
, switched to by setting to 1
.
CarriageCamera
The passenger-view (carriage) camera, usually operated by pressing 5
, switched to by
setting to 1
.
CouplingCamera
The coupling camera, usually operated by pressing 6
, switched to by setting to 1
.
YardCamera
The yard camera, usually operated by pressing 7
, switched to by setting to 1
.
SwitchToNextFrontCab
Cab camera switch, usually operated by pressing Ctrl +
, switched to by setting to 1
.
SwitchToNextRearCab
Cab camera switch, usually operated by pressing Ctrl -
, switched to by setting to 1
.
FreeCamera
The free camera, usually operated by pressing 8
, switched to by setting to 1
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more