dcs-retribution/game/ato/starttype.py
Dan Albert 14769c0350 Fix type errors with Flight.start_type in the UI.
Also reorders the enum so that iteration shows the order we want in the
UI by default.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1672
2021-10-23 12:19:20 -07:00

16 lines
290 B
Python

from enum import Enum, unique
@unique
class StartType(Enum):
"""The start type for a Flight.
This is distinct from dcs.mission.StartType because we need a fourth state:
IN_FLIGHT.
"""
COLD = "Cold"
WARM = "Warm"
RUNWAY = "Runway"
IN_FLIGHT = "In Flight"