This wrapper keeps references intact if you switch between the compiled assembly and source code versions of the original class. More...
Additional Inherited Members | |
Public Member Functions inherited from PixelCrushers.LoveHate.FactionManager | |
virtual void | ResetAll () |
Resets faction database and all registered faction members. | |
Faction | GetFaction (int factionID) |
Looks up a faction by its ID. | |
Faction | GetFactionSilent (int factionID) |
Looks up a faction by its ID. | |
Faction | GetFaction (int factionID, bool silent) |
Looks up a faction by its ID. | |
Faction | GetFaction (string factionName) |
Looks up a faction by its name. | |
int | GetFactionID (string factionName) |
Looks up a faction ID by its name. | |
void | RegisterFactionMember (FactionMember member) |
Registers a faction member. | |
void | UnregisterFactionMember (FactionMember member) |
Unregisters a faction member. | |
bool | FactionHasAncestor (int factionID, int ancestorID) |
Checks if a faction has an ancestor (parent, grandparent, etc.) | |
bool | FactionHasDirectParent (int factionID, int parentID) |
Checks if a faction has a direct parent. | |
void | AddFactionParent (int factionID, int parentID) |
Adds a parent to a faction. | |
void | RemoveFactionParent (int factionID, int parentID, bool inheritRelationships) |
Removes a parent from a faction. | |
bool | FindPersonalAffinity (int judgeFactionID, int subjectFactionID, out float affinity) |
Finds this faction's personal affinity for another faction. | |
bool | FindAffinity (int judgeFactionID, int subjectFactionID, out float affinity) |
Finds the affinity of a judging faction to a subject faction. | |
float | GetAffinity (int judgeFactionID, int subjectFactionID) |
Gets the affinity of a judging faction to a subject faction. | |
float | GetAffinity (string judgeFactionName, string subjectFactionName) |
Gets a judge's affinity to a subject using their faction names. | |
void | SetPersonalAffinity (int judgeFactionID, int subjectFactionID, float affinity) |
Sets this faction's personal affinity to another faction. | |
void | SetPersonalAffinity (string judgeFactionName, string subjectFactionName, float affinity) |
Sets a judge's personal affinity to a subject using their faction names. | |
void | ModifyPersonalAffinity (int judgeFactionID, int subjectFactionID, float affinityChange) |
Modifies (increments or decrements) a judge's personal affinity to a subject using their faction IDs. | |
void | ModifyPersonalAffinity (string judgeFactionName, string subjectFactionName, float affinityChange) |
Modifies (increments or decrements) a judge's personal affinity to a subject using their faction names. | |
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. | |
void | CommitDeed (FactionMember actor, Deed deed, bool requiresSight, Dimension dimension, float radius) |
Informs factions that a deed was committed. | |
void | CommitDeed (FactionMember actor, Deed deed, bool requiresSight) |
Commits the deed. | |
string | SerializeToString () |
void | DeserializeFromString (string s) |
Static Public Member Functions inherited from PixelCrushers.LoveHate.FactionManager | |
static List< string > | ZonePluginActivator () |
For optional UtopiaWorx Zone Controller integration. | |
static List< string > | ZonePluginActivatorMethods () |
For optional UtopiaWorx Zone Controller integration. | |
Public Attributes inherited from PixelCrushers.LoveHate.FactionManager | |
FactionDatabase | factionDatabase |
The faction database managed by this faction manager. | |
int | witnessesPerUpdate = 60 |
When a deed is committed, process this many potential witnesses each Update. | |
bool | canWitnessSelf = false |
Faction members can witness their own deeds. | |
bool | allowOnlyOneFactionManager = false |
If a faction manager already exists when this one tries to start, destroy this one instead. | |
bool | debug |
Tick to log activity to the console. | |
Protected Member Functions inherited from PixelCrushers.LoveHate.FactionManager | |
virtual void | Awake () |
virtual void | Start () |
Properties inherited from PixelCrushers.LoveHate.FactionManager | |
Dictionary< int, Faction > | factions [get] |
Dictionary< Faction, List< FactionMember > > | members [get] |
static FactionManager | instance [get, set] |
This wrapper keeps references intact if you switch between the compiled assembly and source code versions of the original class.