MainUI::MainUI(QtEnvironment& env, SimpleSetup& setup, IRCClient& client) : client(client) { ui = new Ui::MainUI(); ui->setupUi(this); ui->topLayout->addWidget(env.GetGLWidget()); client.JoinedChannelEvent().Attach(*this); chan = NULL; show(); }
IRCCity::IRCCity(IRCClient& c, ISceneNode* n, TextureLoader& l) : client(c),root(n), loader(l) { c.JoinedChannelEvent().Attach(*this); }