set session for chat
This commit is contained in:
@@ -124,6 +124,11 @@ gameLobbyDialogImpl::~gameLobbyDialogImpl()
|
||||
|
||||
}
|
||||
|
||||
void gameLobbyDialogImpl::setSession(boost::shared_ptr<Session> session) {
|
||||
mySession = session;
|
||||
myChat->setSession(mySession);
|
||||
}
|
||||
|
||||
void gameLobbyDialogImpl::createGame()
|
||||
{
|
||||
assert(mySession);
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
|
||||
ChatTools *getMyChat() { return myChat; }
|
||||
|
||||
void setSession(boost::shared_ptr<Session> session) { mySession = session; }
|
||||
void setSession(boost::shared_ptr<Session> session);
|
||||
boost::shared_ptr<Session> getSession() { assert(mySession.get()); return mySession; }
|
||||
|
||||
void setMyW ( gameTableImpl* theValue ) { myW = theValue; }
|
||||
|
||||
Reference in New Issue
Block a user