mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #241 Plugin free functions, conversions and MetaType registration
This commit is contained in:
33
src/plugins/simulator/fs9/blacksimplugin_freefunctions.h
Normal file
33
src/plugins/simulator/fs9/blacksimplugin_freefunctions.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/* Copyright (C) 2014
|
||||
* swift project community / contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of Swift Project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#ifndef BLACKSIMPLUGIN_FREEFUNCTIONS_H
|
||||
#define BLACKSIMPLUGIN_FREEFUNCTIONS_H
|
||||
|
||||
#include "multiplayer_packets.h"
|
||||
#include "blackmisc/avaircraftsituation.h"
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
namespace Fs9
|
||||
{
|
||||
//! Register all relevant metadata in BlackMisc
|
||||
void registerMetadata();
|
||||
|
||||
//! Convert FS9 struct to aircraft situation
|
||||
BlackMisc::Aviation::CAircraftSituation aircraftSituationfromFS9(const MPPositionVelocity &positionVelocity);
|
||||
|
||||
//! Convert an aircraft situation to a FS9 struct
|
||||
MPPositionVelocity aircraftSituationtoFS9(const BlackMisc::Aviation::CAircraftSituation &oldSituation,
|
||||
const BlackMisc::Aviation::CAircraftSituation &newSituation,
|
||||
double updateInterval);
|
||||
}
|
||||
}
|
||||
|
||||
#endif //BLACKSIMPLUGIN_FREEFUNCTIONS_H
|
||||
Reference in New Issue
Block a user