StaticWeather
classWeather preset a biome shows for one severity band
- load-only Usable only while mods load. The game seals these members once loading finishes, so a call or a write from a running world raises an error.
Vanilla presets
Names vanilla registers, and so the names weather.set and weather.snap accept. Which of them a biome shows in each severity band is set per biome family, and a mod that registers its own StaticWeather adds to this list.
- Clear
- SlightlyCloudy
- PartlyCloudy
- Overcast
- LightRain
- Rain
- Storm
- Foggy
- ExtremeFoggy
- DenseLowFog
- LightLowFog
- Snowfall
- Blizzard
- DustHaze
- SandStorm
Fields
| Name | Type | Description | |
|---|---|---|---|
| cloud_coverage | number | Cloud coverage the sky is set to, 0..10 | |
| thunder | number | Thunder and lightning the sky is set to, 0..10 | |
| fog | number | Fog amount the sky is set to, 0..10 | |
Standard members (5)
Every class of this kind carries these.
| StaticWeather.cast(object) | Trying to cast Object into StaticWeather |
| StaticWeather.get_class() | Return StaticWeather class object |
| StaticWeather.find(name) | Looks StaticWeather up in db, nil when there is none |
| StaticWeather.get(name) | Takes StaticWeather from db, reports a miss to the log |
| StaticWeather.reg(name) load-only | Register a new StaticWeather static object |
Inherited from Prototype (2)
- name read-only Object name
- Prototype:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (1)
- Object:get_class() Class of this object