Hmmmm… LVARs you say. I must confess that I only got started with the SimConnect API a couple of weeks ago and that I have not yet looked at any other part of the MSFS SDK at all.
So I actually had to lookup the term LVAR (“local variables”), e.g. here
“LVAR (correct would be L:Var) are Local Variables that only exist in the simulator itself and are not accessible from the outside via SimConnect.”
Okay, so I understand that “local variables” may be easier to use (or “make things possible” in the first place) within the flight simulator than what is known as “simulation variables”. And they are not accessible “from outside” (hence the name “local”).
But I would still expect - from the flight simulator, not necessarily the aircraft provider - that the state (value) those local variables be at least reflected in the “official SimConnect API”, namely the corresponding simulation variables. Or can a developer define his/her own local variables (which would make it nigh impossible to map them onto the corresponding SimConnect simulation variables)?
And what I am not quite clear about: why are you calling the “simulation variables” (as exposed via the SimConnect API) “legacy”? Do you have any source for that? I know that (most? all?) simulation events have just been declared legacy (see my other question about events here and the official MSFS SDK documentation), but the simulation variables themselves? That would render the entire SimConnect API a legacy API (and what would be the replacement?).
Anyway, I actually had a look into the T-45 directory and quickly searched for the term “tailhook”. I did not find anything within any XML file, but several *.cfg and *.flt files turned up.
Are those local variables (and the corresponding simulation variable would be TAILHOOK POSITION)?
UPDATE: The XML files you were referring to are probably packed (archived) into Xml.fsarchive (and similar archives) and are hence not accessible to me (the content is binary and possibly even encrypted - did not bother to look at its content with a HEX editor ;)).