This static wrapper class provides easy access to FactionManager methods. More...
Static Public Member Functions | |
static Faction | GetFaction (int factionID) |
Looks up a faction by its ID. | |
static Faction | GetFactionSilent (int factionID) |
Looks up a faction by its ID. | |
static Faction | GetFaction (int factionID, bool silent) |
Looks up a faction by its ID. | |
static Faction | GetFaction (string factionName) |
Looks up a faction by its name. | |
static int | GetFactionID (string factionName) |
Looks up a faction ID by its name. | |
static bool | FactionHasAncestor (int factionID, int ancestorID) |
Checks if a faction has an ancestor (parent, grandparent, etc.) | |
static bool | FactionHasDirectParent (int factionID, int parentID) |
Checks if a faction has a direct parent. | |
static void | AddFactionParent (int factionID, int parentID) |
Adds a parent to a faction. | |
static void | RemoveFactionParent (int factionID, int parentID, bool inheritRelationships) |
Removes a parent from a faction. | |
static bool | FindPersonalAffinity (int judgeFactionID, int subjectFactionID, out float affinity) |
Finds this faction's personal affinity for another faction. | |
static bool | FindAffinity (int judgeFactionID, int subjectFactionID, out float affinity) |
Finds the affinity of a judging faction to a subject faction. | |
static float | GetAffinity (int judgeFactionID, int subjectFactionID) |
Gets the affinity of a judging faction to a subject faction. | |
static float | GetAffinity (string judgeFactionName, string subjectFactionName) |
Gets a judge's affinity to a subject using their faction names. | |
static void | SetPersonalAffinity (int judgeFactionID, int subjectFactionID, float affinity) |
Sets this faction's personal affinity to another faction. | |
static void | SetPersonalAffinity (string judgeFactionName, string subjectFactionName, float affinity) |
Sets a judge's personal affinity to a subject using their faction names. | |
static void | ModifyPersonalAffinity (int judgeFactionID, int subjectFactionID, float affinityChange) |
Modifies (increments or decrements) a judge's personal affinity to a subject using their faction IDs. | |
static void | ModifyPersonalAffinity (string judgeFactionName, string subjectFactionName, float affinityChange) |
Modifies (increments or decrements) a judge's personal affinity to a subject using their faction names. | |
static void | ShareAffinity (int judgeFactionID, int otherFactionID, int subjectFactionID) |
If the faction has personal affinity for a subject and the other doesn't, this gives the other an affinity for the subject based on the other's affinity for this faction. | |
static void | CommitDeed (FactionMember actor, Deed deed, bool requiresSight, Dimension dimension, float radius) |
Informs factions that a deed was committed. | |
static void | CommitDeed (FactionMember actor, Deed deed, bool requiresSight) |
Commits the deed. | |
Properties | |
static FactionManager | factionManager [get] |
The current FactionManager instance. | |
static FactionDatabase | factionDatabase [get] |
The faction database managed by FactionManager instance. | |
static int | witnessesPerUpdate [get, set] |
When a deed is committed, process this many potential witnesses each Update. | |
static bool | canWitnessSelf [get, set] |
Faction members can witness their own deeds. | |
static bool | debug [get, set] |
Log activity to the console. | |
This static wrapper class provides easy access to FactionManager methods.
|
inlinestatic |
Adds a parent to a faction.
factionID | Faction ID. |
parentID | Parent ID. |
|
inlinestatic |
Commits the deed.
This version has no distance restrictions.
actor | Actor. |
deed | Deed. |
requiresSight | If set to true requires sight. |
|
inlinestatic |
Informs factions that a deed was committed.
actor | FactionMember who committed the deed. |
deed | Deed. |
requiresSight | If true , the deed must be seen to be witnessed. |
dimension | The world space dimension to use for radius checks. |
radius | Max distance from position that factions can witness the deed (0=anywhere). |
|
inlinestatic |
Checks if a faction has an ancestor (parent, grandparent, etc.)
true
, if has ancestor, false
otherwise.factionID | Faction ID. |
ancestorID | Ancestor ID. |
|
inlinestatic |
Checks if a faction has a direct parent.
true
, if has direct parent, false
otherwise.factionID | Faction ID. |
parentID | Parent ID. |
|
inlinestatic |
Finds the affinity of a judging faction to a subject faction.
true
, if affinity was found, false
otherwise.judgeFactionID | Judge faction ID. |
subjectFactionID | Subject faction ID. |
affinity | Affinity of judge to subject. |
|
inlinestatic |
Finds this faction's personal affinity for another faction.
Doesn't check parents.
true
if personal affinity was found, false
otherwise.subjectFactionID | The other faction ID. |
affinity | Affinity of this faction to the subject. |
|
inlinestatic |
Gets the affinity of a judging faction to a subject faction.
judgeFactionID | Judge faction ID. |
subjectFactionID | Subject faction ID. |
|
inlinestatic |
Gets a judge's affinity to a subject using their faction names.
judgeFactionName | Judge faction name. |
subjectFactionName | Subject faction name. |
|
inlinestatic |
Looks up a faction by its ID.
factionID | Faction ID. |
|
inlinestatic |
Looks up a faction by its ID.
factionID | Faction ID. |
silent | If set to true , don't log warnings. |
|
inlinestatic |
Looks up a faction by its name.
factionName | Faction name. |
|
inlinestatic |
Looks up a faction ID by its name.
factionName | Faction name. |
|
inlinestatic |
Looks up a faction by its ID.
Doesn't log any warning messages.
factionID | Faction ID. |
|
inlinestatic |
Modifies (increments or decrements) a judge's personal affinity to a subject using their faction IDs.
judgeFactionID | Judge faction ID. |
subjectFactionID | Subject faction ID. |
affinityChange | Affinity change. |
|
inlinestatic |
Modifies (increments or decrements) a judge's personal affinity to a subject using their faction names.
judgeFactionName | Judge faction name. |
subjectFactionName | Subject faction name. |
affinityChange | Affinity change. |
|
inlinestatic |
Removes a parent from a faction.
factionID | Faction ID. |
parentID | Parent ID. |
inheritRelationships | If set to true keep the parent's relationships if the faction doesn't already have a personal relationship. |
|
inlinestatic |
Sets this faction's personal affinity to another faction.
subjectFactionID | Subject faction ID. |
affinity | Affinity to the other faction. |
|
inlinestatic |
Sets a judge's personal affinity to a subject using their faction names.
judgeFactionName | Judge faction name. |
subjectFactionName | Subject faction name. |
affinity | Affinity. |
|
inlinestatic |
If the faction has personal affinity for a subject and the other doesn't, this gives the other an affinity for the subject based on the other's affinity for this faction.
judgeFactionID | Judging faction ID (gives affinity). |
otherFactionID | Other faction ID (maybe receives affinity). |
subjectFactionID | Subject faction ID (affinity about this faction). |
|
staticgetset |
Faction members can witness their own deeds.
|
staticgetset |
Log activity to the console.
|
staticget |
The faction database managed by FactionManager instance.
|
staticget |
The current FactionManager instance.
|
staticgetset |
When a deed is committed, process this many potential witnesses each Update.