engine/maps/source/MapRegistry.cpp
// Get a map from the registry.  Return a null shared ptr if the map
// with the given ID doesn't exist.
Get a map from the registry.  Return a null shared ptr if the map
with the given ID doesn't exist.
Get a map from the registry . Return a null shared ptr if the map with the given ID doesn ' t exist .
MapPtr MapRegistry::get_map(const string& map_id) const
{
  MapPtr map;
  std::map<string, MapPtr>::const_iterator r_it = map_registry.find(map_id);
  if (r_it != map_registry.end())
  {
    map = r_it->second;
  }
  return map;
}
MapPtr MapRegistry :: get_map ( const string & map_id ) const { MapPtr map ; std :: map < string , MapPtr > :: const_iterator r_it = map_registry . find ( map_id ) ; if ( r_it != map_registry . end ( ) ) { map = r_it -> second ; } return map ; }
Get a map from the registry.
Get a map from the registry .