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

A deed template defines the attributes of a deed that the DeedReporter can report to the FactionManager. More...

Collaboration diagram for PixelCrushers.LoveHate.DeedTemplate:

Public Member Functions

 DeedTemplate (string tag, string description, float impact, float aggression, float[] traits, bool requiresSight, float radius, PermittedEvaluators permittedEvaluators=PermittedEvaluators.Everyone, float minAffinityEffect=-100, float maxAffinityEffect=100, float noRepeatDuration=0)
 Initializes a new instance of the PixelCrushers.LoveHate.DeedTemplate struct.
 

Public Attributes

DeedCategory category
 Optional category this deed template belongs to.
 
string tag = string.Empty
 The tag unique to the type of deed (e.g., "attack").
 
string description = string.Empty
 An optional description for the designer's use.
 
float impact = 0
 The impact of the deed to targets (e.g., attack might be -3, heal +1).
 
float aggression
 How aggressive or submissive the deed is, where -100 is the most submissive and +100 is the most aggressive.
 
float[] traits = new float[0]
 The objective traits of the deed.
 
bool requiresSight = false
 Set true if witnesses must be able to see the deed being committed.
 
float radius = 10
 The maximum radius at which the deed can be witnessed.
 
PermittedEvaluators permittedEvaluators = PermittedEvaluators.Everyone
 
float minAffinityEffect = -100
 Evaluating this deed will never cause faction's affinity to go below this value.
 
float maxAffinityEffect = -100
 Evaluating this deed will never cause faction's affinity to go below above value.
 
float noRepeatDuration = 0
 Faction members will ignore deeds that are repeated within this duration.
 

Detailed Description

A deed template defines the attributes of a deed that the DeedReporter can report to the FactionManager.

Constructor & Destructor Documentation

◆ DeedTemplate()

PixelCrushers.LoveHate.DeedTemplate.DeedTemplate ( string  tag,
string  description,
float  impact,
float  aggression,
float[]  traits,
bool  requiresSight,
float  radius,
PermittedEvaluators  permittedEvaluators = PermittedEvaluators::Everyone,
float  minAffinityEffect = -100,
float  maxAffinityEffect = 100,
float  noRepeatDuration = 0 
)
inline

Initializes a new instance of the PixelCrushers.LoveHate.DeedTemplate struct.

Parameters
tagTag unique to the type of deed (e.g., "attack").
impactImpact of the deed to targets (e.g., attack might be -3, heal +1).
aggressionAggressiveness of the deed [-100,+100].
traitsObjective traits of the deed.
mustSeeIf set to true must be seen to be witnessed.
radiusMaximum radius at which the deed can be witnessed.
permittedEvaluatorsWho is allowed to evaluate the deed.

Member Data Documentation

◆ aggression

float PixelCrushers.LoveHate.DeedTemplate.aggression

How aggressive or submissive the deed is, where -100 is the most submissive and +100 is the most aggressive.

◆ category

DeedCategory PixelCrushers.LoveHate.DeedTemplate.category

Optional category this deed template belongs to.

◆ description

string PixelCrushers.LoveHate.DeedTemplate.description = string.Empty

An optional description for the designer's use.

◆ impact

float PixelCrushers.LoveHate.DeedTemplate.impact = 0

The impact of the deed to targets (e.g., attack might be -3, heal +1).

◆ maxAffinityEffect

float PixelCrushers.LoveHate.DeedTemplate.maxAffinityEffect = -100

Evaluating this deed will never cause faction's affinity to go below above value.

◆ minAffinityEffect

float PixelCrushers.LoveHate.DeedTemplate.minAffinityEffect = -100

Evaluating this deed will never cause faction's affinity to go below this value.

◆ noRepeatDuration

float PixelCrushers.LoveHate.DeedTemplate.noRepeatDuration = 0

Faction members will ignore deeds that are repeated within this duration.

◆ permittedEvaluators

PermittedEvaluators PixelCrushers.LoveHate.DeedTemplate.permittedEvaluators = PermittedEvaluators.Everyone

◆ radius

float PixelCrushers.LoveHate.DeedTemplate.radius = 10

The maximum radius at which the deed can be witnessed.

◆ requiresSight

bool PixelCrushers.LoveHate.DeedTemplate.requiresSight = false

Set true if witnesses must be able to see the deed being committed.

◆ tag

string PixelCrushers.LoveHate.DeedTemplate.tag = string.Empty

The tag unique to the type of deed (e.g., "attack").

◆ traits

float [] PixelCrushers.LoveHate.DeedTemplate.traits = new float[0]

The objective traits of the deed.


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