Table of Contents

Method WeatherChanged

Namespace
Pillars.Weather.Actors
Assembly
Pillars.dll

WeatherChanged(string)

Triggers the WeatherChange event with the provided weather value

public void WeatherChanged(string weather)

Parameters

weather string

The string representation of the weather to be applied.

Remarks

This method attempts to parse the provided weather string into a valid WEATHER enum value. If the parsing is successful, it triggers a weather change event with the provided value. If the parsing fails, it logs a warning message using Pillars.Weather.Actors.WeatherActor._logger and defaults to applying the Clear weather.