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

Initial version of antilag support

This commit is contained in:
Ivan Savenko
2025-06-28 21:42:54 +03:00
parent 58de180083
commit 3576efc3f3
24 changed files with 490 additions and 23 deletions

View File

@@ -26,12 +26,14 @@ class CMapInfo;
class CGameState;
struct ClientPlayer;
struct CPackForLobby;
struct CPackForServer;
struct CPackForClient;
class HighScoreParameter;
VCMI_LIB_NAMESPACE_END
class AntilagServer;
class CClient;
class CBaseForLobbyApply;
class GlobalLobbyClient;
@@ -100,6 +102,7 @@ class CServerHandler final : public IServerAPI, public LobbyInfo, public INetwor
std::unique_ptr<GlobalLobbyClient> lobbyClient;
std::unique_ptr<GameChatHandler> gameChat;
std::unique_ptr<IServerRunner> serverRunner;
std::unique_ptr<AntilagServer> antilagServer;
std::shared_ptr<CMapInfo> mapToStart;
std::vector<std::string> localPlayerNames;
@@ -214,4 +217,6 @@ public:
void visitForLobby(CPackForLobby & lobbyPack);
void visitForClient(CPackForClient & clientPack);
void sendGamePack(const CPackForServer & pack) const;
};