增加和修改了非常多的功能
This commit is contained in:
@@ -165,5 +165,11 @@ void NetworkManager::handleServerMessage(const QJsonObject& msg) {
|
||||
emit roomListReceived(payload["rooms"].toArray());
|
||||
} else if (type == "settlement_result") {
|
||||
emit settlementResult(payload);
|
||||
} else if (type == "game_log") {
|
||||
emit gameLogReceived(payload["text"].toString());
|
||||
} else if (type == "login_result") {
|
||||
emit loginResult(payload);
|
||||
} else if (type == "register_result") {
|
||||
emit registerResult(payload);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ signals:
|
||||
void roomListReceived(const QJsonArray& rooms);
|
||||
void settlementResult(const QJsonObject& data);
|
||||
void binaryFrameReceived(const QByteArray& data);
|
||||
void gameLogReceived(const QString& text);
|
||||
void loginResult(const QJsonObject& result);
|
||||
void registerResult(const QJsonObject& result);
|
||||
|
||||
private slots:
|
||||
void onConnected();
|
||||
|
||||
Reference in New Issue
Block a user