Network now runs on it's own thread.

Network now sends Disconnect message when game is terminated.
This commit is contained in:
Jocke
2015-12-08 11:02:40 +01:00
parent 2c993e82d6
commit b5a010a517
4 changed files with 45 additions and 16 deletions
+10
View File
@@ -8,6 +8,9 @@
#include "Core/InputManager.h"
#include "GUI/Frame.h"
#include "Core/World.h"
// Network
#include <boost/thread.hpp>
#include "Network/Client.h"
class Game
{
@@ -26,6 +29,13 @@ private:
InputManager* m_InputManager;
GUI::Frame* m_FrameStack;
World* m_World;
// Network viriables
boost::thread m_NetworkThread;
Client m_Client;
// Network methods
void NetworkFunction();
};
#endif