Fixes and cleanup of game client network shutdown and restart

This commit is contained in:
Ivan Savenko committed 2024-02-03 19:27:04 +02:00
1 parent 6eef197cea
commit 2c2bec791c
17 files changed
+102 -146

No files matched your search

+1 -5
View File
@@ -42,9 +42,7 @@ class GlobalLobbyProcessor;
enum class EServerState : ui8
{
LOBBY,
GAMEPLAY_STARTING,
GAMEPLAY,
GAMEPLAY_ENDED,
SHUTDOWN
};
@@ -59,10 +57,8 @@ class CVCMIServer : public LobbyInfo, public INetworkServerListener, public INet
std::unique_ptr<INetworkHandler> networkHandler;
bool restartGameplay; // FIXME: this is just a hack
std::shared_ptr<CApplier<CBaseForServerApply>> applier;
EServerState state;
EServerState state = EServerState::LOBBY;
std::shared_ptr<CConnection> findConnection(const std::shared_ptr<INetworkConnection> &);