TwinFan / XPMP2

Multiplayer library for X-Plane 11/12 with instancing, TCAS override, and sound
https://twinfan.github.io/XPMP2/
Other
24 stars 16 forks source link

Add a get function for the Matched Model icao type code #15

Closed markcellis closed 4 years ago

markcellis commented 4 years ago

If XPMP2 matches to a different ICAO type code than what was requested it would be good for the client code to see what it matched to. I could use this to play the appropriate engine audio files.

There is currently and accessor for the model name that was matched but not for the icao type code.

Alternatives A fully defined pointer to the cslModel would work too. Unfortunately that is just a forward declare in the end user header files

Benefits See above

TwinFan commented 4 years ago

Is solved by implementing Aircraft::GetModelinfo(), which returns a public structure with all copyable information. The internal structure will not be published as it includes many technical implementation details and I don't want public headers to change just because of some internal tweaks. Happens too often for XPMPAircraft.h already.