FSUIPC Client DLL
.NET interface for FSUIPC
FsLVar Class Reference

Represents an LVar in MSFS. More...

Public Member Functions

void SetValue (double NewValue)
 Sets a new value for this LVar. The new value is immediately sent to the WASM module, however this will not update the local Value property in this FsLvar.
 

Properties

string Name [get]
 The Name of the LVar.
 
bool ValueChanged [get]
 True if the value changed at the during the last RefreshData()
 
double Value [get]
 The current value of the Lvar.
 

Events

EventHandler< LVarEventOnValueChanged
 Fires when this LVar changes.
 

Detailed Description

Represents an LVar in MSFS.

Member Function Documentation

◆ SetValue()

void SetValue ( double NewValue)
inline

Sets a new value for this LVar. The new value is immediately sent to the WASM module, however this will not update the local Value property in this FsLvar.

The Value will be updated when the new value has been set in the sim and is received by the next RefreshData() call. The OnValueChanged event will also be fired at this time.

Parameters
NewValue