Ref T698, added remote aircraft context to network class

This commit is contained in:
Klaus Basan
2019-07-05 01:48:51 +02:00
parent 495294fb80
commit c78b42d5ea
9 changed files with 71 additions and 17 deletions

View File

@@ -67,7 +67,11 @@ namespace BlackCore
CContextNetwork::registerHelp();
// 1. Init by "network driver"
m_network = new CNetworkVatlib(nullptr, this->getRuntime()->getCContextOwnAircraft(), this);
m_network = new CNetworkVatlib(
this,
this->getRuntime()->getCContextOwnAircraft(),
this,
this);
connect(m_network, &INetwork::connectionStatusChanged, this, &CContextNetwork::onFsdConnectionStatusChanged);
connect(m_network, &INetwork::kicked, this, &CContextNetwork::kicked);
connect(m_network, &INetwork::textMessagesReceived, this, &CContextNetwork::textMessagesReceived);