1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-11 11:31:52 +02:00

Renamed openGameRoom to more clear activateGameRoom

This commit is contained in:
Ivan Savenko 2024-03-04 14:11:45 +02:00
parent 2c1b142d68
commit 5b1549200a
3 changed files with 6 additions and 6 deletions

View File

@ -279,7 +279,7 @@ void GlobalLobbyClient::sendMessage(const JsonNode & data)
void GlobalLobbyClient::sendOpenPublicRoom()
{
JsonNode toSend;
toSend["type"].String() = "openGameRoom";
toSend["type"].String() = "activateGameRoom";
toSend["hostAccountID"] = settings["lobby"]["accountID"];
toSend["roomType"].String() = "public";
sendMessage(toSend);
@ -288,7 +288,7 @@ void GlobalLobbyClient::sendOpenPublicRoom()
void GlobalLobbyClient::sendOpenPrivateRoom()
{
JsonNode toSend;
toSend["type"].String() = "openGameRoom";
toSend["type"].String() = "activateGameRoom";
toSend["hostAccountID"] = settings["lobby"]["accountID"];
toSend["roomType"].String() = "private";
sendMessage(toSend);

View File

@ -258,8 +258,8 @@ void LobbyServer::onPacketReceived(const NetworkConnectionPtr & connection, cons
if(messageType == "sendChatMessage")
return receiveSendChatMessage(connection, json);
if(messageType == "openGameRoom")
return receiveOpenGameRoom(connection, json);
if(messageType == "activateGameRoom")
return receiveActivateGameRoom(connection, json);
if(messageType == "joinGameRoom")
return receiveJoinGameRoom(connection, json);
@ -464,7 +464,7 @@ void LobbyServer::receiveServerProxyLogin(const NetworkConnectionPtr & connectio
//connection->close();
}
void LobbyServer::receiveOpenGameRoom(const NetworkConnectionPtr & connection, const JsonNode & json)
void LobbyServer::receiveActivateGameRoom(const NetworkConnectionPtr & connection, const JsonNode & json)
{
std::string hostAccountID = json["hostAccountID"].String();
std::string accountID = activeAccounts[connection];

View File

@ -77,7 +77,7 @@ class LobbyServer final : public INetworkServerListener
void receiveServerProxyLogin(const NetworkConnectionPtr & connection, const JsonNode & json);
void receiveSendChatMessage(const NetworkConnectionPtr & connection, const JsonNode & json);
void receiveOpenGameRoom(const NetworkConnectionPtr & connection, const JsonNode & json);
void receiveActivateGameRoom(const NetworkConnectionPtr & connection, const JsonNode & json);
void receiveJoinGameRoom(const NetworkConnectionPtr & connection, const JsonNode & json);
void receiveLeaveGameRoom(const NetworkConnectionPtr & connection, const JsonNode & json);
void receiveSendInvite(const NetworkConnectionPtr & connection, const JsonNode & json);