14#include <simgear/props/props.hxx>
15#include <simgear/structure/commands.hxx>
16#include <simgear/structure/event_mgr.hxx>
17#include <simgear/structure/subsystem_mgr.hxx>
21bool SwiftConnection::startServer([[maybe_unused]]
const SGPropertyNode*, [[maybe_unused]] SGPropertyNode* root)
23 m_plugin = std::make_unique<CPlugin>();
27bool SwiftConnection::stopServer([[maybe_unused]]
const SGPropertyNode* arg, [[maybe_unused]] SGPropertyNode* root)
41 globals->get_commands()->addCommand(
"swiftStart",
this, &SwiftConnection::startServer);
42 globals->get_commands()->addCommand(
"swiftStop",
this, &SwiftConnection::stopServer);
61void SwiftConnection::shutdownSwift()
65 m_initialized =
false;
67 globals->get_commands()->removeCommand(
"swiftStart");
68 globals->get_commands()->removeCommand(
"swiftStop");
82 SGSubsystemMgr::POST_FDM);
void update(double delta_time_sec) override
bool fgSetBool(char const *name, bool val)
Set a bool value for a property.
SGSubsystemMgr::Registrant< flightgear::swift::SwiftConnection > registrantSwiftConnection(SGSubsystemMgr::POST_FDM)