Loading...
Searching...
No Matches
PixelCrushers.LoveHate.DeedReactionEvents Class Reference

This component provides UnityEvent blocks for reactions that cause different pleasure values. More...

Inheritance diagram for PixelCrushers.LoveHate.DeedReactionEvents:
Collaboration diagram for PixelCrushers.LoveHate.DeedReactionEvents:

Classes

class  Reaction
 

Public Member Functions

void OnWitnessDeed (Rumor rumor)
 Raises the witness deed event.
 

Public Attributes

float timeBetweenReactions = 300f
 At least this many seconds must pass before reacting to the same character.
 
Reaction[] reactions
 The animations to play based on deed pleasure.
 

Protected Member Functions

virtual void Awake ()
 

Detailed Description

This component provides UnityEvent blocks for reactions that cause different pleasure values.

Member Function Documentation

◆ Awake()

virtual void PixelCrushers.LoveHate.DeedReactionEvents.Awake ( )
inlineprotectedvirtual

◆ OnWitnessDeed()

void PixelCrushers.LoveHate.DeedReactionEvents.OnWitnessDeed ( Rumor  rumor)
inline

Raises the witness deed event.

Parameters
rumorThe faction member's subjective evaluation of the deed, which may or may not be added to the faction member's memory based on its perceived importance to the faction member.

Implements PixelCrushers.LoveHate.IWitnessDeedEventHandler.

Member Data Documentation

◆ reactions

Reaction [] PixelCrushers.LoveHate.DeedReactionEvents.reactions
Initial value:
= new Reaction[3]
{
new Reaction(-100, -25, RangeAnimation.AllTemperaments),
new Reaction(-25, 25, RangeAnimation.AllTemperaments),
new Reaction(25, 100, RangeAnimation.AllTemperaments)
}

The animations to play based on deed pleasure.

◆ timeBetweenReactions

float PixelCrushers.LoveHate.DeedReactionEvents.timeBetweenReactions = 300f

At least this many seconds must pass before reacting to the same character.


The documentation for this class was generated from the following file: