Esempio n. 1
0
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));
}
Esempio n. 2
0
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));
}