Added client callback interface.
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
using namespace std;
|
||||
|
||||
|
||||
ClientThread::ClientThread(GuiInterface &gui)
|
||||
: m_curState(NULL), m_gui(gui)
|
||||
ClientThread::ClientThread(ClientCallback &cb)
|
||||
: m_curState(NULL), m_callback(cb)
|
||||
{
|
||||
m_data.reset(new ClientData);
|
||||
m_curState = &CLIENT_INITIAL_STATE::Instance();
|
||||
@@ -53,7 +53,7 @@ ClientThread::Main()
|
||||
{
|
||||
while (!ShouldTerminate())
|
||||
{
|
||||
GetState().Process(*this, m_gui);
|
||||
GetState().Process(*this, m_callback);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user