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. More...
 

Properties

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

Events

EventHandler< LVarEventOnValueChanged
 Fires when this LVar changes More...
 

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

Property Documentation

◆ Name

string Name
get

The Name of the LVar

◆ Value

double Value
get

The current value of the Lvar.

◆ ValueChanged

bool ValueChanged
get

True if the value changed at the during the last RefreshData()

Event Documentation

◆ OnValueChanged

EventHandler<LVarEvent> OnValueChanged

Fires when this LVar changes