void BuildingDataHolder::addData(const BuildingData &data) { BuildingType buildingType = data.getType(); if (hasData(buildingType)) { THROW("Building is already set " << data.getName()); } _mapDataByName.insert(std::make_pair(buildingType, data)); }
void BuildingDataHolder::addData(const BuildingData &data) { BuildingType buildingType = data.getType(); if (hasData(buildingType)) { StringHelper::debug( 0xff, "Building is already set %s", data.getName().c_str() ); return; } _d->buildings.insert(std::make_pair(buildingType, data)); }