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

A trait definition defines a single personality value (such as Charity) or relationship value (such as Rivalry). More...

Public Member Functions

 TraitDefinition ()
 
 TraitDefinition (string name, string description)
 

Public Attributes

string name = string.Empty
 The name of the trait.
 
string description = string.Empty
 An optional description.
 
float minValue = -100f
 Clamp trait values to this min value.
 
float maxValue = 100f
 Clamp trait values to this max value.
 
string customData = string.Empty
 

Detailed Description

A trait definition defines a single personality value (such as Charity) or relationship value (such as Rivalry).

Constructor & Destructor Documentation

◆ TraitDefinition() [1/2]

PixelCrushers.LoveHate.TraitDefinition.TraitDefinition ( )
inline

◆ TraitDefinition() [2/2]

PixelCrushers.LoveHate.TraitDefinition.TraitDefinition ( string  name,
string  description 
)
inline

Member Data Documentation

◆ customData

string PixelCrushers.LoveHate.TraitDefinition.customData = string.Empty

◆ description

string PixelCrushers.LoveHate.TraitDefinition.description = string.Empty

An optional description.

◆ maxValue

float PixelCrushers.LoveHate.TraitDefinition.maxValue = 100f

Clamp trait values to this max value.

◆ minValue

float PixelCrushers.LoveHate.TraitDefinition.minValue = -100f

Clamp trait values to this min value.

◆ name

string PixelCrushers.LoveHate.TraitDefinition.name = string.Empty

The name of the trait.


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