mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Added list of active accounts and rooms to UI. Added room creation logic
This commit is contained in:
@@ -57,6 +57,7 @@ void GlobalLobbyProcessor::receiveLoginSuccess(const JsonNode & json)
|
||||
{
|
||||
// no-op, wait just for any new commands from lobby
|
||||
logGlobal->info("Succesfully connected to lobby server");
|
||||
owner.startAcceptingIncomingConnections();
|
||||
}
|
||||
|
||||
void GlobalLobbyProcessor::receiveAccountJoinsRoom(const JsonNode & json)
|
||||
@@ -83,6 +84,7 @@ void GlobalLobbyProcessor::onConnectionEstablished(const std::shared_ptr<INetwor
|
||||
|
||||
JsonNode toSend;
|
||||
toSend["type"].String() = "serverLogin";
|
||||
toSend["gameRoomID"].String() = owner.uuid;
|
||||
toSend["accountID"] = settings["lobby"]["accountID"];
|
||||
toSend["accountCookie"] = settings["lobby"]["accountCookie"];
|
||||
sendMessage(toSend);
|
||||
@@ -97,7 +99,7 @@ void GlobalLobbyProcessor::onConnectionEstablished(const std::shared_ptr<INetwor
|
||||
|
||||
JsonNode toSend;
|
||||
toSend["type"].String() = "serverProxyLogin";
|
||||
toSend["gameRoomID"].String() = "";
|
||||
toSend["gameRoomID"].String() = owner.uuid;
|
||||
toSend["accountID"].String() = accountID;
|
||||
toSend["accountCookie"] = settings["lobby"]["accountCookie"];
|
||||
sendMessage(toSend);
|
||||
|
||||
Reference in New Issue
Block a user