TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMF_RandomEvents Class Reference

This feedback allows you to play a random Unity Event, out of a weighted list. To use it, add items to its WeightedEvents list. For each of them, you'll need to specify a weight (the higher the weight, the more likely it'll be picked) and the event to trigger. For an event in that list to have a chance to be picked, the weights can't be zero. More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_RandomEvents:
MoreMountains.Feedbacks.MMF_Feedback

Public Attributes

List< WeightedEventWeightedEvents
 sets the inspector color for this feedback

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once

Protected Member Functions

override void CustomInitialization (MMF_Player owner)
 On init, triggers the init events.
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play, triggers the play events.

Protected Attributes

MMShufflebag< int > _weightShuffleBag

Additional Inherited Members

Detailed Description

This feedback allows you to play a random Unity Event, out of a weighted list. To use it, add items to its WeightedEvents list. For each of them, you'll need to specify a weight (the higher the weight, the more likely it'll be picked) and the event to trigger. For an event in that list to have a chance to be picked, the weights can't be zero.

Member Function Documentation

◆ CustomInitialization()

override void MoreMountains.Feedbacks.MMF_RandomEvents.CustomInitialization ( MMF_Player owner)
protectedvirtual

On init, triggers the init events.

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_RandomEvents.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

On Play, triggers the play events.

Parameters
position
feedbacksIntensity

Member Data Documentation

◆ _weightShuffleBag

MMShufflebag<int> MoreMountains.Feedbacks.MMF_RandomEvents._weightShuffleBag
protected

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_RandomEvents.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ WeightedEvents

List<WeightedEvent> MoreMountains.Feedbacks.MMF_RandomEvents.WeightedEvents

sets the inspector color for this feedback

the list of events from which to pick


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacksForThirdParty/MMTools/Feedbacks/MMF_RandomEvents.cs