void CommunityHealthWorkerEventCoordinator::AddNode( const suids::suid& node_suid ) { INodeEventContext* pNEC = m_Parent->GetNodeEventContext( node_suid ); m_CachedNodes.push_back( pNEC ); RegisterForEvents( pNEC ); }
// Also used to reinitialize world. void EldritchFramework::InitializeWorld(const HashedString& WorldDef, const bool CreateWorld) { XTRACE_FUNCTION; PrepareForLoad(); ShutDownWorld(); WBWorld::CreateInstance(); WBWorld::GetInstance()->SetClock(GetClock()); RegisterForEvents(); m_World = new EldritchWorld; m_World->SetCurrentWorld(WorldDef); m_World->Initialize(); m_Audio3DListener->SetWorld(m_World); m_UIManager->RegisterForEvents(); if (m_Game) { m_Game->GetBank()->RegisterForEvents(); m_Game->GetPersistence()->RegisterForEvents(); } if (CreateWorld) { m_World->Create(); InitializeTools(); } }
void MainGui::loadMenu() { layout = CEGUI::WindowManager::getSingleton().loadWindowLayout(layoutFileName); name = layout->getName(); wMgrPtr->getWindow("root")->addChildWindow(layout); mapaMenus[name]=this; historia->loadMenu(); mapaMenus[historia->getName()]=historia; opciones->loadMenu(); mapaMenus[opciones->getName()]=opciones; creditos->loadMenu(); mapaMenus[creditos->getName()]=creditos; RegisterForSpecificEvents(); createAnimations(); RegisterForEvents(); }
EldritchPersistence::EldritchPersistence() : m_BankMoney( 0 ) , m_OpenLocks() , m_CharacterHeadIndex( 0 ) , m_CharacterBodyIndex( 0 ) , m_VariableMap() { RegisterForEvents(); }
void Menu::loadMenu() { layout = CEGUI::WindowManager::getSingleton().loadWindowLayout(layoutFileName); name = layout->getName(); wMgrPtr->getWindow("root")->addChildWindow(layout); layout->hide(); createAnimations(); RegisterForEvents(); }
int Gui::load() { myRoot = wMgrPtr->createWindow( "DefaultWindow", "root" ); CEGUI::System::getSingleton().setGUISheet( myRoot ); menuPrincipal->loadMenu(); RegisterForEvents(); //This is for the mouse pointer to appear in the middle of the screen everytime a window is created CEGUI::System::getSingleton().injectMousePosition(w/2,h/2); return 0; }