mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
[FSD] Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
efee7968dc
commit
0876379729
@@ -630,22 +630,6 @@ namespace BlackCore
|
||||
sendQueudedMessage(clientQuery);
|
||||
}
|
||||
|
||||
/* Send FSD message
|
||||
template <class T>
|
||||
void sendMessage(const T &message)
|
||||
{
|
||||
if (!message.isValid()) return;
|
||||
|
||||
const QString payload = message.toTokens().join(':');
|
||||
const QString line = message.pdu() + payload;
|
||||
const QString buffer = line + "\r\n";
|
||||
const QByteArray bufferEncoded = m_fsdTextCodec->fromUnicode(buffer);
|
||||
emitRawFsdMessage(buffer.trimmed(), true);
|
||||
if (m_printToConsole) { qDebug() << "FSD Sent=>" << bufferEncoded; }
|
||||
if (!m_unitTestMode) { m_socket.write(bufferEncoded); }
|
||||
}
|
||||
*/
|
||||
|
||||
void CFSDClient::sendMessageString(const QString &message)
|
||||
{
|
||||
if (message.isEmpty()) { return; }
|
||||
|
||||
@@ -428,7 +428,6 @@ namespace BlackCore
|
||||
SimType m_simType = SimType::Unknown;
|
||||
PilotRating m_pilotRating = PilotRating::Unknown;
|
||||
AtcRating m_atcRating = AtcRating::Unknown;
|
||||
QString m_com1Frequency;
|
||||
|
||||
// Parser
|
||||
QHash<QString, MessageType> m_messageTypeMapping;
|
||||
|
||||
Reference in New Issue
Block a user