Exemplo n.º 1
0
 void updateCityData(CityData& data, const boost::shared_ptr<ResourceInfo>& pResourceInfo, bool isAdding)
 {
     boost::apply_visitor(CityOutputUpdater(data, isAdding), pResourceInfo->getInfo());
     data.recalcOutputs();
 }
Exemplo n.º 2
0
 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();
 }