A deed is an objective record of an act committed by an actor to a target. More...
Public Member Functions | |
void | Assign (string tag, int actorFactionID, int targetFactionID, float impact, float aggression, float actorPowerLevel, float[] traits, PermittedEvaluators permittedEvaluators=PermittedEvaluators.Everyone, float minAffinityEffect=-100, float maxAffinityEffect=100, float noRepeatDuration=0) |
Assigns content to a deed object. | |
Static Public Member Functions | |
static Deed | GetNew (string tag, int actorFactionID, int targetFactionID, float impact, float aggression, float actorPowerLevel, float[] traits, PermittedEvaluators permittedEvaluators=PermittedEvaluators.Everyone, float minAffinityEffect=-100, float maxAffinityEffect=100, float noRepeatDuration=0) |
Gets a new deed object from the pool. | |
static Deed | GetNew (DeedTemplate deedTemplate, int actorFactionID, int targetFactionID, float actorPowerLevel, PermittedEvaluators permittedEvaluators=PermittedEvaluators.Everyone) |
Gets a new deed object from the pool. | |
static void | Release (Deed deed) |
Releases a deed object back to the pool. | |
Public Attributes | |
Guid | guid |
The GUID for this deed, used to determine if a faction has already heard about the deed when sharing rumors. | |
DeedCategory | category |
Optional category this deed belongs to. | |
string | tag |
The type of deed (e.g., "attack", "compliment"). | |
int | actorFactionID |
The actor faction that committed the deed. | |
int | targetFactionID |
The target faction that the deed was done to. | |
float | impact |
The impact of the deed, where -100 is the worst and +100 is the best. | |
float | aggression |
How aggressive or submissive the deed is, where -100 is the most submissive and +100 is the most aggressive. | |
float | actorPowerLevel |
The actor's power level. | |
float[] | traits |
The traits associated with the deed. | |
PermittedEvaluators | permittedEvaluators = PermittedEvaluators.Everyone |
Who is allowed to evaluate the deed when witnessed or shared as gossip. | |
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. | |
int | refCount |
A deed object can have multiple references to it. | |
Static Public Attributes | |
static Pool< Deed > | pool = new Pool<Deed>() |
A static pool of objects, to prevent garbage collection stutter. | |
A deed is an objective record of an act committed by an actor to a target.
|
inline |
Assigns content to a deed object.
tag | The deed tag (e.g., "attack", "compliment"). |
actorFactionID | Faction ID of the actor that committed the deed. |
targetFactionID | Faction ID of the target that the action was done to. |
impact | Impact to the target, where -100 is worst and +100 is best. |
aggression | Aggressiveness of the deed [-100,+100]. |
actorPowerLevel | The actor's power level. |
traits | Traits associated with the action. |
permittedEvaluators | Who is allowed to evaluate the deed. |
|
inlinestatic |
Gets a new deed object from the pool.
deedTemplate | Deed template (typically from DeedTemplateLibrary). |
actorFactionID | Actor faction ID. |
targetFactionID | Target faction ID. |
actorPowerLevel | Actor power level. |
permittedEvaluators | Who is allowed to evaluate the deed. |
|
inlinestatic |
Gets a new deed object from the pool.
tag | Tag. |
actorFactionID | Actor faction ID. |
targetFactionID | Target faction ID. |
impact | Impact. |
aggression | Aggression. |
actorPowerLevel | Actor power level. |
traits | Traits. |
permittedEvaluators | Who is allowed to evaluate the deed. |
|
inlinestatic |
Releases a deed object back to the pool.
deed | Deed. |
int PixelCrushers.LoveHate.Deed.actorFactionID |
The actor faction that committed the deed.
float PixelCrushers.LoveHate.Deed.actorPowerLevel |
The actor's power level.
float PixelCrushers.LoveHate.Deed.aggression |
How aggressive or submissive the deed is, where -100 is the most submissive and +100 is the most aggressive.
DeedCategory PixelCrushers.LoveHate.Deed.category |
Optional category this deed belongs to.
Guid PixelCrushers.LoveHate.Deed.guid |
The GUID for this deed, used to determine if a faction has already heard about the deed when sharing rumors.
float PixelCrushers.LoveHate.Deed.impact |
The impact of the deed, where -100 is the worst and +100 is the best.
For example, killing a target in an awful way approaches -100, while saving a target's family approaches +100.
float PixelCrushers.LoveHate.Deed.maxAffinityEffect = -100 |
Evaluating this deed will never cause faction's affinity to go below above value.
float PixelCrushers.LoveHate.Deed.minAffinityEffect = -100 |
Evaluating this deed will never cause faction's affinity to go below this value.
float PixelCrushers.LoveHate.Deed.noRepeatDuration = 0 |
Faction members will ignore deeds that are repeated within this duration.
PermittedEvaluators PixelCrushers.LoveHate.Deed.permittedEvaluators = PermittedEvaluators.Everyone |
Who is allowed to evaluate the deed when witnessed or shared as gossip.
A static pool of objects, to prevent garbage collection stutter.
int PixelCrushers.LoveHate.Deed.refCount |
A deed object can have multiple references to it.
When there are no longer any references to a deed object, we can return it to the pool.
string PixelCrushers.LoveHate.Deed.tag |
The type of deed (e.g., "attack", "compliment").
int PixelCrushers.LoveHate.Deed.targetFactionID |
The target faction that the deed was done to.
float [] PixelCrushers.LoveHate.Deed.traits |
The traits associated with the deed.