# Path: mgz/summary/objects.py
# TC_IDS = [71, 109, 141, 142]


from mgz.summary.objects import TC_IDS
from collections import defaultdict
    """
    for team in teams:
        if i not in team:
            continue
        for j in team:
            if j in resigned:
                return False
    if len(resigned) > 0:
        return True
    return None


def get_civilization(header, index):
    """Get civilization ID."""
    if header.save_version >= 20.06:
        return header.de.players[index].civ_id
    return header.initial.players[index + 1].attributes.civilization


def get_color(header, index):
    """Get color ID."""
    if header.save_version >= 20.06:
        return header.de.players[index].color_id
    return header.initial.players[index + 1].attributes.player_color


def get_position(header, index):
    """Get position."""
    if header.save_version >= 20.06:
        for obj in header.initial.players[index + 1].objects:

# Path: mgz/summary/objects.py
# TC_IDS = [71, 109, 141, 142]


# Path: mgz/summary/players.py
from mgz.summary.objects import TC_IDS
from collections import defaultdict

    """
    for team in teams:
        if i not in team:
            continue
        for j in team:
            if j in resigned:
                return False
    if len(resigned) > 0:
        return True
    return None


def get_civilization(header, index):
    """Get civilization ID."""
    if header.save_version >= 20.06:
        return header.de.players[index].civ_id
    return header.initial.players[index + 1].attributes.civilization


def get_color(header, index):
    """Get color ID."""
    if header.save_version >= 20.06:
        return header.de.players[index].color_id
    return header.initial.players[index + 1].attributes.player_color


def get_position(header, index):
    """Get position."""
    if header.save_version >= 20.06:
        for obj in header.initial.players[index + 1].objects:

            if obj.object_type in TC_IDS: