//---------------------------------------------------------------------- void Game::Launch(HINSTANCE hinstance, int& nCmdShow) { int width = GetGameOption()->GetWidth(); int length = GetGameOption()->GetLength(); bool fullscreen = GetGameOption()->GetFullScreen(); EventManager::Instance().SendEvent ( std::make_shared<Event_CreateWindow>( Event_CreateWindow(&hinstance , nCmdShow, width , length , fullscreen))); EventManager::Instance().SendEvent ( std::make_shared<Event_LookForHwnd>( Event_LookForHwnd())); EventManager::Instance().SendEvent ( std::make_shared<Event_LookForDevices>( Event_LookForDevices())); m_IsRunning = true; }
HS_DBREF CHSInterface::CreateNewGameObject(int object_type) #endif { #ifdef PENNMUSH // No change in code between versions HS_DBREF dbObject; dbObject = new_object(); set_name(dbObject, "NewObj"); Owner(dbObject) = HSCONF.space_wiz; Zone(dbObject) = Zone(HSCONF.space_wiz); Type(dbObject) = TYPE_THING; SetFlag(dbObject, GetGameOption(HSGO_THING_FLAGS)); return dbObject; #endif #if defined(TM3) || defined(MUX) return create_obj(GOD, object_type, "NewObj", 0); #endif }