void HouseFactory::handleObjectReady(Object* object,DispatchClient* client) { //Perform checking on startup there is no client! // client will in all cases be NULL in this factory //if(!client) // return; //add our cells InLoadingContainer* ilc = _getObject(object->getParentId()); //Perform checking. if(!ilc) { gLogger->log(LogManager::NOTICE,"House creation failed (HouseFactory.cpp line 289)"); return; } HouseObject* house = dynamic_cast<HouseObject*>(ilc->mObject); //add hopper / new item to worldObjectlist, but NOT to the SI gWorldManager->addObject(object,true); //pondering whether to use the objectcontainer instead house->addCell(dynamic_cast<CellObject*>(object)); if(house->getLoadCount() == (house->getCellList())->size()) { if(!(_removeFromObjectLoadMap(house->getId()))) gLogger->log(LogManager::NOTICE,"BuildingFactory: Failed removing object from loadmap"); ilc->mOfCallback->handleObjectReady(house,ilc->mClient); mILCPool.free(ilc); } }