#include <FDM/YASim/YASim.hxx>
#endif
-/*
- * Evil global variable required by Network/FGNative,
- * see that class for more information
- */
-FGInterface* evil_global_fdm_state = NULL;
-
FDMShell::FDMShell() :
_tankProperties( fgGetNode("/consumables/fuel", true) ),
_impl(NULL),
{
if (_impl) {
fgSetBool("/sim/fdm-initialized", false);
- evil_global_fdm_state = NULL;
_impl->unbind();
delete _impl;
_impl = NULL;
}
_impl->bind();
- evil_global_fdm_state = _impl;
fgSetBool("/sim/fdm-initialized", true);
fgSetBool("/sim/signals/fdm-initialized", true);
}
}
}
+FGInterface* FDMShell::getInterface() const
+{
+ return _impl;
+}
+
void FDMShell::createImplementation()
{
assert(!_impl);