Skip to content

ObjectType

Bases: _DataSetIntEnums

This enum class provides the integer values used to reference the object types in the game. Used in a lot of effects and conditions, like 'Kill Object', 'Objects in Area'.

Examples

Source code in AoE2ScenarioParser/datasets/trigger_lists/object_type.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
class ObjectType(_DataSetIntEnums):
    """
    This enum class provides the integer values used to reference the object types in the game. Used in a lot of effects
    and conditions, like 'Kill Object', 'Objects in Area'.

    **Examples**



    """
    OTHER = 1
    BUILDING = 2
    CIVILIAN = 3
    MILITARY = 4

Attributes

OTHER = 1 class-attribute instance-attribute

Value: 1

BUILDING = 2 class-attribute instance-attribute

Value: 2

CIVILIAN = 3 class-attribute instance-attribute

Value: 3

MILITARY = 4 class-attribute instance-attribute

Value: 4