• Pure

    Returns unitstate, first index is 0.

    It is used to define the constants representing unit state. Accepts any integer, the unitstate reference is always the same for a given integer.

    Example: constant unitstate UNIT_STATE_MAX_MANA = ConvertUnitState(3)

    Parameters

    • i: number

      The integer representation of the unitstate.

    Returns UnitState

    Note

    See: GetUnitState, SetUnitState.

Generated using TypeDoc