parameters: (full_data_set)
docstring: Create terrain groups.
  
          :param full_data_set: GenieObjectContainer instance that
                                contains all relevant data for the conversion
                                process.
          :type full_data_set: class: ...dataformat.aoc.genie_object_container.GenieObjectContainer
docstring_summary: Create terrain groups.
docstring_tokens: Create terrain groups .
function: def create_terrain_groups(full_data_set):
          """
          Create terrain groups.
  
          :param full_data_set: GenieObjectContainer instance that
                                contains all relevant data for the conversion
                                process.
          :type full_data_set: class: ...dataformat.aoc.genie_object_container.GenieObjectContainer
          """
          terrains = full_data_set.genie_terrains.values()
  
          for terrain in terrains:
              slp_id = terrain["slp_id"].get_value()
              replacement_id = terrain["terrain_replacement_id"].get_value()
  
              if slp_id == -1 and replacement_id == -1:
                  # No graphics and no graphics replacement means this terrain is unused
                  continue
  
              enabled = terrain["enabled"].get_value()
  
              if enabled:
                  terrain_group = GenieTerrainGroup(terrain.get_id(), full_data_set)
                  full_data_set.terrain_groups.update({terrain.get_id(): terrain_group})
function_tokens: def create_terrain_groups ( full_data_set ) : terrains = full_data_set . genie_terrains . values ( ) for terrain in terrains : slp_id = terrain [ "slp_id" ] . get_value ( ) replacement_id = terrain [ "terrain_replacement_id" ] . get_value ( ) if slp_id == - 1 and replacement_id == - 1 : # No graphics and no graphics replacement means this terrain is unused continue enabled = terrain [ "enabled" ] . get_value ( ) if enabled : terrain_group = GenieTerrainGroup ( terrain . get_id ( ) , full_data_set ) full_data_set . terrain_groups . update ( { terrain . get_id ( ) : terrain_group } )