Skip to content

AreaAttr

Bases: Enum

Enum to show the supported attributes that can be edited using Area.attr(k, v)

Source code in AoE2ScenarioParser/objects/support/area.py
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
class AreaAttr(Enum):
    """Enum to show the supported attributes that can be edited using ``Area.attr(k, v)``"""
    X1 = "x1"
    Y1 = "y1"
    X2 = "x2"
    Y2 = "y2"
    GAP_SIZE = "gap_size"
    GAP_SIZE_X = "gap_size_x"
    GAP_SIZE_Y = "gap_size_y"
    LINE_WIDTH = "line_width"
    LINE_WIDTH_X = "line_width_x"
    LINE_WIDTH_Y = "line_width_y"
    AXIS = "axis"
    CORNER_SIZE = "corner_size"
    CORNER_SIZE_X = "corner_size_x"
    CORNER_SIZE_Y = "corner_size_y"
    BLOCK_SIZE = "block_size"
    BLOCK_SIZE_X = "block_size_x"
    BLOCK_SIZE_Y = "block_size_y"

Attributes

Attribute Type

AXIS class-attribute instance-attribute

BLOCK_SIZE class-attribute instance-attribute

BLOCK_SIZE_X class-attribute instance-attribute

BLOCK_SIZE_Y class-attribute instance-attribute

CORNER_SIZE class-attribute instance-attribute

CORNER_SIZE_X class-attribute instance-attribute

CORNER_SIZE_Y class-attribute instance-attribute

GAP_SIZE class-attribute instance-attribute

GAP_SIZE_X class-attribute instance-attribute

GAP_SIZE_Y class-attribute instance-attribute

LINE_WIDTH class-attribute instance-attribute

LINE_WIDTH_X class-attribute instance-attribute

LINE_WIDTH_Y class-attribute instance-attribute

X1 class-attribute instance-attribute

X2 class-attribute instance-attribute

Y1 class-attribute instance-attribute

Y2 class-attribute instance-attribute