Function: ResolveRegisteredSimVar()
ResolveRegisteredSimVar(
simVarDef,coerceBooleanType):RegisteredSimVarDefinition
Defined in: src/sdk/data/SimVars.ts:190
Resolves a SimVar definition into a registered definition. The registered definition can be used with GetRegisteredSimVarValue() for efficient retrieval of SimVar values.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
simVarDef | Readonly<SimVarDefinition> | undefined | The SimVar definition to resolve. |
coerceBooleanType | boolean | false | Whether to coerce values retrieved using the bool/boolean SimVar type to the boolean type. If true, then type coercion will be performed using the "boolean cast" operator (!!). If false, then type coercion will not be performed and values will be left typed as number. Defaults to false. |
Returns
The resolved registered SimVar definition corresponding to the specified SimVar definition.