Game configuration now placed in a struct. Prepared to send/receive game configuration over tcp.
This commit is contained in:
@@ -30,6 +30,7 @@ class ServerContext;
|
||||
class ServerRecvThread;
|
||||
class ServerSenderCallback;
|
||||
class SenderThread;
|
||||
struct GameData;
|
||||
|
||||
class ServerThread : public Thread
|
||||
{
|
||||
@@ -38,7 +39,8 @@ public:
|
||||
virtual ~ServerThread();
|
||||
|
||||
// Set the parameters.
|
||||
void Init(unsigned serverPort, bool ipv6, const std::string &pwd);
|
||||
void Init(unsigned serverPort, bool ipv6, const std::string &pwd,
|
||||
const GameData &gameData);
|
||||
void StartGame();
|
||||
|
||||
ServerCallback &GetCallback();
|
||||
|
||||
Reference in New Issue
Block a user