void updateCityData(CityData& data, const boost::shared_ptr<ResourceInfo>& pResourceInfo, bool isAdding) { boost::apply_visitor(CityOutputUpdater(data, isAdding), pResourceInfo->getInfo()); data.recalcOutputs(); }
void updateRequestData(const CvCity* pCity, CityData& data, const boost::shared_ptr<TechInfo>& pTechInfo) { data.getCivHelper()->addTech(pTechInfo->getTechType()); boost::apply_visitor(CityOutputUpdater(pCity, data), pTechInfo->getInfo()); data.recalcOutputs(); }