parameters: (game_version)
docstring: Return the name lookup dicts for civs.
  
      :param game_version: Game edition and expansions for which the lookups should be.
      :type game_version: tuple
docstring_summary: Return the name lookup dicts for civs.
docstring_tokens: Return the name lookup dicts for civs .
function: def get_civ_lookups(game_version):
      """
      Return the name lookup dicts for civs.
  
      :param game_version: Game edition and expansions for which the lookups should be.
      :type game_version: tuple
      """
      game_edition = game_version[0]
      # game_expansions = game_version[1]
  
      if game_edition.game_id == "ROR":
          return ror_internal.CIV_GROUP_LOOKUPS
  
      if game_edition.game_id == "AOC":
          return aoc_internal.CIV_GROUP_LOOKUPS
  
      if game_edition.game_id == "HDEDITION":
          civ_lookup_dict = {}
          civ_lookup_dict.update(aoc_internal.CIV_GROUP_LOOKUPS)
  
          # TODO: Include expansion lookups
  
          return civ_lookup_dict
  
      if game_edition.game_id == "AOE1DE":
          return ror_internal.CIV_GROUP_LOOKUPS
  
      if game_edition.game_id == "AOE2DE":
          civ_lookup_dict = {}
          civ_lookup_dict.update(aoc_internal.CIV_GROUP_LOOKUPS)
          civ_lookup_dict.update(fgt_internal.CIV_GROUP_LOOKUPS)
          civ_lookup_dict.update(ak_internal.CIV_GROUP_LOOKUPS)
          civ_lookup_dict.update(raj_internal.CIV_GROUP_LOOKUPS)
          civ_lookup_dict.update(de2_internal.CIV_GROUP_LOOKUPS)
  
          return civ_lookup_dict
  
      if game_edition.game_id == "SWGB":
          return swgb_internal.CIV_GROUP_LOOKUPS
  
      raise Exception("No lookup dict found for game version %s"
                      % game_edition.edition_name)
function_tokens: def get_civ_lookups ( game_version ) : game_edition = game_version [ 0 ] # game_expansions = game_version[1] if game_edition . game_id == "ROR" : return ror_internal . CIV_GROUP_LOOKUPS if game_edition . game_id == "AOC" : return aoc_internal . CIV_GROUP_LOOKUPS if game_edition . game_id == "HDEDITION" : civ_lookup_dict = { } civ_lookup_dict . update ( aoc_internal . CIV_GROUP_LOOKUPS ) # TODO: Include expansion lookups return civ_lookup_dict if game_edition . game_id == "AOE1DE" : return ror_internal . CIV_GROUP_LOOKUPS if game_edition . game_id == "AOE2DE" : civ_lookup_dict = { } civ_lookup_dict . update ( aoc_internal . CIV_GROUP_LOOKUPS ) civ_lookup_dict . update ( fgt_internal . CIV_GROUP_LOOKUPS ) civ_lookup_dict . update ( ak_internal . CIV_GROUP_LOOKUPS ) civ_lookup_dict . update ( raj_internal . CIV_GROUP_LOOKUPS ) civ_lookup_dict . update ( de2_internal . CIV_GROUP_LOOKUPS ) return civ_lookup_dict if game_edition . game_id == "SWGB" : return swgb_internal . CIV_GROUP_LOOKUPS raise Exception ( "No lookup dict found for game version %s" % game_edition . edition_name )