|
1
|
1 |
|
from candv import Values |
|
2
|
1 |
|
from candv import VerboseValueConstant |
|
3
|
1 |
|
from candv import with_constant_class |
|
4
|
|
|
|
|
5
|
1 |
|
from ._translations import pgettext_lazy as P_ |
|
6
|
|
|
|
|
7
|
|
|
from ._utils import export |
|
8
|
1 |
|
|
|
9
|
1 |
|
|
|
10
|
|
|
@export |
|
11
|
|
|
class WeatherConditionConstant(VerboseValueConstant): |
|
12
|
1 |
|
... |
|
13
|
1 |
|
|
|
14
|
1 |
|
|
|
15
|
1 |
|
@export |
|
16
|
1 |
|
class WEATHER_CONDITIONS(with_constant_class(WeatherConditionConstant), Values): |
|
17
|
1 |
|
CLEAR = WeatherConditionConstant(0, P_("weather", "clear")) |
|
18
|
1 |
|
GOOD = WeatherConditionConstant(1, P_("weather", "good")) |
|
19
|
1 |
|
HAZY = WeatherConditionConstant(2, P_("weather", "hazy")) |
|
20
|
|
|
POOR = WeatherConditionConstant(3, P_("weather", "poor")) |
|
21
|
|
|
BLIND = WeatherConditionConstant(4, P_("weather", "blind")) |
|
22
|
1 |
|
PRECIPITATION = WeatherConditionConstant(5, P_("weather", "precipitation")) |
|
23
|
1 |
|
THUNDERSTORM = WeatherConditionConstant(6, P_("weather", "thunderstorm")) |
|
24
|
|
|
|
|
25
|
|
|
|
|
26
|
1 |
|
@export |
|
27
|
1 |
|
class WindGustConstant(VerboseValueConstant): |
|
28
|
1 |
|
... |
|
29
|
1 |
|
|
|
30
|
1 |
|
|
|
31
|
|
|
@export |
|
32
|
|
|
class WIND_GUSTS(with_constant_class(WindGustConstant), Values): |
|
33
|
1 |
|
NONE = WindGustConstant(0, P_("gust", "none")) |
|
34
|
1 |
|
LOW = WindGustConstant(8, P_("gust", "low")) |
|
35
|
|
|
MODERATE = WindGustConstant(10, P_("gust", "moderate")) |
|
36
|
|
|
STRONG = WindGustConstant(12, P_("gust", "strong")) |
|
37
|
1 |
|
|
|
38
|
1 |
|
|
|
39
|
1 |
|
@export |
|
40
|
1 |
|
class TurbulenceConstant(VerboseValueConstant): |
|
41
|
1 |
|
... |
|
42
|
1 |
|
|
|
43
|
|
|
|
|
44
|
|
|
@export |
|
45
|
|
|
class TURBULENCES(with_constant_class(TurbulenceConstant), Values): |
|
46
|
|
|
NONE = TurbulenceConstant(0, P_("turbulence", "none")) |
|
47
|
|
|
LOW = TurbulenceConstant(3, P_("turbulence", "low")) |
|
48
|
|
|
MODERATE = TurbulenceConstant(4, P_("turbulence", "moderate")) |
|
49
|
|
|
STRONG = TurbulenceConstant(5, P_("turbulence", "strong")) |
|
50
|
|
|
VERY_STRONG = TurbulenceConstant(6, P_("turbulence", "very strong")) |
|
51
|
|
|
|