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

CORNERS = 4 class-attribute instance-attribute

Value: 4

EDGE = 1 class-attribute instance-attribute

Value: 1

FULL = 0 class-attribute instance-attribute

Value: 0

GRID = 2 class-attribute instance-attribute

Value: 2

LINES = 3 class-attribute instance-attribute

Value: 3

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]