Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

defineWeather

defineWeather(name, options): WeatherHandle

Declares a weather at module scope, such as a storm or a game’s own heat: the factors that differ from clear’s, and the ground’s levels under it. Throws for a name that is not kebab-case and a factor out of its range. weather({ presets }) installs it.

Parameter Type
name string
options WeatherPresetOptions

WeatherHandle