mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
More changes for netcode/serialization
Removed not needed stuff
This commit is contained in:
@@ -1,8 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include "../global.h"
|
||||
#include <set>
|
||||
class CVCMIServer;
|
||||
class CGameState;
|
||||
class CConnection;
|
||||
struct StartInfo;
|
||||
class CGameHandler
|
||||
{
|
||||
CGameState *gs;
|
||||
CVCMIServer *s;
|
||||
std::map<int,CConnection*> connections;
|
||||
std::set<CConnection*> conns;
|
||||
public:
|
||||
CGameHandler(void);
|
||||
~CGameHandler(void);
|
||||
void init(StartInfo *si, int Seed);
|
||||
void handleConnection(std::set<int> players, CConnection &c);
|
||||
void run();
|
||||
void newTurn();
|
||||
|
||||
friend class CVCMIServer;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user