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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user