The new Vars API functions don’t make any specific mention of L vars (like Gauge API docs do).
Are they still referred to as “named” variables?
In Gauge API a “named var” was a Local (‘L’) var and Simvars (‘A’) were “airplane vars.” Does that still apply?
To confirm, is this a correct mapping? (I know many of these are linked in the docs, but not all and docs have been wrong…)
L vars:
check_named_var() -> fsVarsGetRegisteredNamedVarId()
get_name_of_named_variable() -> ???
register_named_variable() -> fsVarsRegisterNamedVar()
get_named_variable_typed_value() -> fsVarsNamedVarGet()
set_named_variable_typed_value() -> fsVarsNamedVarSet()
A vars:
get_aircraft_var_enum() -> fsVarsGetAircrafVarId()
aircraft_varget() -> fsVarsAircrafVarGet()
Token vars? Deprecated?
Right now the docs for register_var_by_name()
point to fsVarsRegisterNamedVar()
as the replacement, but that doesn’t seem right. Whereas docs for register_named_variable()
don’t point to any replacement.
EDIT: Is there a replacement for get_name_of_named_variable()
? We use this to find our what L vars are currently available in the system (once a new model loads, etc).
Thanks,
-Max