CONTENT CONTRACT · VERSION 1
weather_changed
The weather of a map actually changed.
Signature
{ current: WeatherId, kind: "weather_changed", map: MapRef, previous: WeatherId }Fields
| Name | Type | Meaning |
|---|---|---|
current | WeatherId | Weather after the change. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: weather |
kind | "weather_changed" | Discriminant |
map | MapRef | Instantiated map in which this event occurs. Length: 1…256; Pattern: ^[\s\S]+$ |
previous | WeatherId | Weather before the change. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: weather |
Validated example
{
"current": "core:rain",
"kind": "weather_changed",
"map": "m1",
"previous": "core:clear"
}