Defines a relationship to another faction, which is a set of traits that always includes affinity as the first trait.
More...
|
int | factionID = 0 |
| The ID of the faction this relationship is directed to.
|
|
bool | inheritable = true |
| Do child factions inherit this relationship?
|
|
float[] | traits = new float[0] |
| Relationship traits.
|
|
Defines a relationship to another faction, which is a set of traits that always includes affinity as the first trait.
◆ Relationship() [1/3]
PixelCrushers.LoveHate.Relationship.Relationship |
( |
| ) |
|
|
inline |
◆ Relationship() [2/3]
PixelCrushers.LoveHate.Relationship.Relationship |
( |
int |
factionID, |
|
|
float[] |
traits |
|
) |
| |
|
inline |
◆ Relationship() [3/3]
PixelCrushers.LoveHate.Relationship.Relationship |
( |
int |
factionID, |
|
|
bool |
inheritable, |
|
|
float[] |
traits |
|
) |
| |
|
inline |
◆ Assign() [1/2]
void PixelCrushers.LoveHate.Relationship.Assign |
( |
int |
factionID, |
|
|
bool |
inheritable, |
|
|
float[] |
traits |
|
) |
| |
|
inline |
◆ Assign() [2/2]
void PixelCrushers.LoveHate.Relationship.Assign |
( |
int |
factionID, |
|
|
float[] |
traits |
|
) |
| |
|
inline |
◆ GetDefaultValue()
static float PixelCrushers.LoveHate.Relationship.GetDefaultValue |
( |
int |
judgeFactionID, |
|
|
int |
subjectFactionID, |
|
|
int |
traitID |
|
) |
| |
|
inlinestatic |
◆ GetNew() [1/2]
static Relationship PixelCrushers.LoveHate.Relationship.GetNew |
( |
int |
factionID, |
|
|
bool |
inheritable, |
|
|
float[] |
traits |
|
) |
| |
|
inlinestatic |
Gets a new relationship from the pool.
- Returns
- The new relationship.
- Parameters
-
factionID | Faction ID. |
traits | Traits. |
◆ GetNew() [2/2]
static Relationship PixelCrushers.LoveHate.Relationship.GetNew |
( |
int |
factionID, |
|
|
float[] |
traits |
|
) |
| |
|
inlinestatic |
Gets a new relationship from the pool.
- Returns
- The new relationship.
- Parameters
-
factionID | Faction ID. |
traits | Traits. |
◆ GetTrait()
float PixelCrushers.LoveHate.Relationship.GetTrait |
( |
int |
index | ) |
|
|
inline |
◆ Release()
static void PixelCrushers.LoveHate.Relationship.Release |
( |
Relationship |
relationship | ) |
|
|
inlinestatic |
Releases a relationship object back to the pool.
- Parameters
-
◆ SetTrait()
void PixelCrushers.LoveHate.Relationship.SetTrait |
( |
int |
index, |
|
|
float |
value |
|
) |
| |
|
inline |
◆ AffinityTraitIndex
const int PixelCrushers.LoveHate.Relationship.AffinityTraitIndex = 0 |
|
static |
◆ AffinityTraitName
const string PixelCrushers.LoveHate.Relationship.AffinityTraitName = "Affinity" |
|
static |
◆ factionID
int PixelCrushers.LoveHate.Relationship.factionID = 0 |
The ID of the faction this relationship is directed to.
◆ inheritable
bool PixelCrushers.LoveHate.Relationship.inheritable = true |
Do child factions inherit this relationship?
◆ pool
A static pool of objects, to prevent garbage collection stutter.
◆ traits
float [] PixelCrushers.LoveHate.Relationship.traits = new float[0] |
Relationship traits.
The first trait is always affinity.
◆ affinity
float PixelCrushers.LoveHate.Relationship.affinity |
|
getset |
The documentation for this class was generated from the following file:
- C:/Dev/LoveHate/Dev/Source/Assets/Plugins/Pixel Crushers/LoveHate/Scripts/Core/Faction Database/Relationship.cs