1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Added LobbyPrepareStartGame pack to replace old workarounds

This commit is contained in:
Ivan Savenko
2024-02-03 19:57:23 +02:00
parent 2c2bec791c
commit bd4c7e3ac0
12 changed files with 40 additions and 19 deletions

View File

@@ -107,10 +107,6 @@ class CServerHandler final : public IServerAPI, public LobbyInfo, public INetwor
void threadRunNetwork();
void threadRunServer(bool connectToLobby);
/// temporary helper member that exists while game in lobby mode
/// required to correctly deserialize gamestate using client-side game callback
std::unique_ptr<CClient> nextClient;
void sendLobbyPack(const CPackForLobby & pack) const override;
void onPacketReceived(const NetworkConnectionPtr &, const std::vector<std::byte> & message) override;