Skip to main content

Class: WeatherChangeBeforeEvent

Contains information related to changes in weather in the environment.

Constructors

new WeatherChangeBeforeEvent()

private new WeatherChangeBeforeEvent(): WeatherChangeBeforeEvent

Returns

WeatherChangeBeforeEvent

Properties

cancel

cancel: boolean

Remarks

If set to true the weather change will be cancelled.


duration

duration: number

Remarks

Sets the duration of the new weather (in ticks).


newWeather

newWeather: WeatherType

Remarks

The type of weather that will be applied.


previousWeather

readonly previousWeather: WeatherType

Remarks

The type of weather that it was prior to the event being fired.