Skip to content

AreaState

Bases: Enum

Enum to show the state of the Area object

Source code in AoE2ScenarioParser/objects/support/area.py
22
23
24
25
26
27
28
29
30
31
32
33
class AreaState(Enum):
    """Enum to show the state of the Area object"""
    FULL = 0
    EDGE = 1
    GRID = 2
    LINES = 3
    CORNERS = 4

    @staticmethod
    def unchunkables() -> List[AreaState]:
        """Returns the states that cannot be split into chunks"""
        return [AreaState.FULL, AreaState.EDGE]

Attributes

Attribute Type

CORNERS class-attribute instance-attribute

EDGE class-attribute instance-attribute

FULL class-attribute instance-attribute

GRID class-attribute instance-attribute

LINES class-attribute instance-attribute

Functions


def unchunkables(...) staticmethod

Returns the states that cannot be split into chunks

Source code in AoE2ScenarioParser/objects/support/area.py
30
31
32
33
@staticmethod
def unchunkables() -> List[AreaState]:
    """Returns the states that cannot be split into chunks"""
    return [AreaState.FULL, AreaState.EDGE]