CONTENT CONTRACT · VERSION 1
weather
A weather state: its name, clouds, precipitation and wind, and its look.
Signature
{ cloud_permille: Permille, id: ContentId, kind: "weather", look: WeatherLookId, name: TextKey, precipitation_permille: Permille, wind_mm_per_second: WindSpeed }Fields
| Name | Type | Meaning |
|---|---|---|
cloud_permille | Permille | Cloud coverage as thousandths of the sky (the cloud shadows). Range: 0…1000; Unit: permille |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
kind | "weather" | Discriminant |
look | WeatherLookId | How the weather looks and sounds; weathers may share a look. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: weather_look |
name | TextKey | Localization key for the displayed name. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
precipitation_permille | Permille | Strength of the precipitation: above 0 it waters fields. How much falls is the look's (`precipitation.count`); a look may fall without watering (ash). Range: 0…1000; Unit: permille |
wind_mm_per_second | WindSpeed | Wind speed in millimeters per simulated second (the cloud shadows' drift). Range: 0…2147483647; Unit: mm/s |
Validated example
{
"cloud_permille": 180,
"id": "core:clear",
"kind": "weather",
"look": "core:clear_look",
"name": "core:clear_name",
"precipitation_permille": 0,
"wind_mm_per_second": 800
}