Network now runs on it's own thread.
Network now sends Disconnect message when game is terminated.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user