CONTENT CONTRACT · VERSION 1
weather_look
How a weather looks and sounds: sky, wind, precipitation, drifting leaves, lightning, wildlife and ambient loops.
Signature
{ critters: Critters, drift_permille: Permille, gust: WeatherGust, id: ContentId, kind: "weather_look", lightning: (Lightning)?, night_hold: boolean, precipitation: (Precipitation)?, sky: WeatherSky, sound: WeatherSound, stirs_drift: boolean, wet: boolean }Fields
| Name | Type | Meaning |
|---|---|---|
critters | Critters | How much wildlife this weather lets out, against the season's. |
drift_permille | Permille | Share of the season's drifting leaves or petals this weather shows. Range: 0…1000; Unit: permille |
gust | WeatherGust | Wind of grass, leaves, banners and falling particles. |
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_look" | Discriminant |
lightning | Lightning | Lightning flashes with thunder; absent: none. |
night_hold | boolean | Holds the light of the middle of the night at any time of day (a storm). |
precipitation | Precipitation | Falling rain or snow; absent: none. |
sky | WeatherSky | Cloud layer of the sky dome, dimming and the day sky's colour. |
sound | WeatherSound | Ambient loops and the music level. |
stirs_drift | boolean | The wind stirs up drift even in a season whose drift is not always about. |
wet | boolean | Wet weather: the music is lowered and ambience marked mute_when_wet falls silent. |
Validated example
{
"critters": {
"butterflies": 1000,
"day_flock": 1000,
"fireflies": 1000
},
"drift_permille": 350,
"gust": {
"strength_permille": 180,
"sway_permille": 800,
"wave_permille": 0
},
"id": "core:clear_look",
"kind": "weather_look",
"night_hold": false,
"sky": {
"cover_permille": 220,
"darkness_permille": 0,
"haze": false,
"overcast_permille": 0
},
"sound": {
"loops": [
{
"cue": "core:sound_wind",
"gain_permille": 35,
"with_precipitation": false
}
],
"music_permille": 1000
},
"stirs_drift": false,
"wet": false
}