mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 03:35:38 +08:00
Ref T683, move "m_ownAircraftUpdateCycles" one level up so it can be used in FS9
This commit is contained in:
@@ -68,6 +68,12 @@ namespace BlackSimPlugin
|
|||||||
return CSimulatorPluginCommon::parseDetails(parser);
|
return CSimulatorPluginCommon::parseDetails(parser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSimulatorFsCommon::reset()
|
||||||
|
{
|
||||||
|
m_ownAircraftUpdateCycles = 0;
|
||||||
|
ISimulator::reset();
|
||||||
|
}
|
||||||
|
|
||||||
void CSimulatorFsCommon::registerHelp()
|
void CSimulatorFsCommon::registerHelp()
|
||||||
{
|
{
|
||||||
if (CSimpleCommandParser::registered("BlackSimPlugin::FsCommon::CSimulatorFsCommon")) { return; }
|
if (CSimpleCommandParser::registered("BlackSimPlugin::FsCommon::CSimulatorFsCommon")) { return; }
|
||||||
|
|||||||
@@ -75,10 +75,14 @@ namespace BlackSimPlugin
|
|||||||
//! @}
|
//! @}
|
||||||
virtual bool parseDetails(const BlackMisc::CSimpleCommandParser &parser) override;
|
virtual bool parseDetails(const BlackMisc::CSimpleCommandParser &parser) override;
|
||||||
|
|
||||||
|
//! \copydoc BlackCore::ISimulator::reset
|
||||||
|
virtual void reset() override;
|
||||||
|
|
||||||
//! Register help
|
//! Register help
|
||||||
static void registerHelp();
|
static void registerHelp();
|
||||||
|
|
||||||
CFsuipc *m_fsuipc = nullptr; //!< FSUIPC
|
CFsuipc *m_fsuipc = nullptr; //!< FSUIPC
|
||||||
|
int m_ownAircraftUpdateCycles = 0; //!< own aircraft updates, even with 50 updates/sec long enough even for 32bit
|
||||||
bool m_useFsuipc = false; //!< use FSUIPC
|
bool m_useFsuipc = false; //!< use FSUIPC
|
||||||
bool m_simPaused = false; //!< simulator paused?
|
bool m_simPaused = false; //!< simulator paused?
|
||||||
bool m_simTimeSynced = false; //!< time synchronized?
|
bool m_simTimeSynced = false; //!< time synchronized?
|
||||||
|
|||||||
@@ -595,7 +595,6 @@ namespace BlackSimPlugin
|
|||||||
int m_sbDataReceived = 0; //!< SB3 area data received
|
int m_sbDataReceived = 0; //!< SB3 area data received
|
||||||
int m_syncTimeDeferredCounter = 0; //!< Set when synchronized, used to wait some time
|
int m_syncTimeDeferredCounter = 0; //!< Set when synchronized, used to wait some time
|
||||||
int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set
|
int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set
|
||||||
int m_ownAircraftUpdateCycles = 0; //!< own aircraft update
|
|
||||||
|
|
||||||
// tracing dispatch performance
|
// tracing dispatch performance
|
||||||
int m_dispatchErrors = 0; //!< number of dispatched failed, \sa dispatch
|
int m_dispatchErrors = 0; //!< number of dispatched failed, \sa dispatch
|
||||||
|
|||||||
Reference in New Issue
Block a user