Hi all, recently I am learning how to export the struct data from PDK to outside users.
A fresh example is what PMDG does. They export the hardware data so other players can interface with the simulation.
I have defined the above codes. However, I noticed that to get the data, I need to design a function like this:
May I ask how should I write the code?
Thanks!
A fresh example is what PMDG does. They export the hardware data so other players can interface with the simulation.
pSimObjectMgr->RegisterProperty(CLSID_Airplane, TEXT("DEBUG_FYCYC_Internal_Data"), SimpleAirplane::getInternalData);I have defined the above codes. However, I noticed that to get the data, I need to design a function like this:
String property samples
static STDMETHODIMP GetCfgDir(__in const ISimObject& Sim, __out WCHAR* pszProperty, __in UINT uLength, __in int iIndex)
{
return static_cast<const SimpleAirplane&>(Sim).GetBaseObject().GetCfgDir(pszProperty, uLength);
}
May I ask how should I write the code?
Thanks!
