Description

Village.Storm.StormMoodHandler: Monobehaviour

The StormMoodHandler is an component that shoiuld be placed in the scene.

When the date or weather change, it will detect the current mood, and dispatch the OnMoodChanged event.

Mood can also be manually applied from it

graph BT
  StormMoodHandler --> Monobehaviour

Public Member Functions

static ApplyMood(Weather, DateTime) : void Apply a custom mood from a weather and a date, and save as current mood and raise OnMoodChanged
static GetCurrentMood() : MoodDescriptor return the current applied Mood
static ApplyMood(MoodDescriptor) : void raise OnMoodChanged. Does not save current mood
static IsMatchingMoodCondition(MoodDescriptor, MoodCondition) return true if all condition of MoodCondition are matching the MoodDescriptor

Public Events

static OnMoodChanged : Action<MoodDescriptor> Raised whenever a new mood is applied