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.FactionDatabase | |
void | Initialize () |
int | CreateNewFaction (string factionName, string description) |
Creates a new faction in the faction database. | |
void | DestroyFaction (string factionName) |
Permanently removes a faction from the faction database. | |
void | DestroyFaction (int factionID) |
Permanently removes a faction from the faction database. | |
Faction | GetFaction (int factionID) |
Gets the faction with the specified faction ID. | |
Faction | GetFaction (string factionName) |
Gets the faction with the specified name. | |
int | GetFactionID (string factionName) |
Gets a faction's ID from its name. | |
bool | FactionHasAncestor (int factionID, int ancestorID) |
Determines whether a faction has another faction as its parent, grandparent, etc. | |
bool | FactionHasDirectParent (int factionID, int parentID) |
Determines whether a faction has another faction as one of its direct parents. | |
void | AddFactionParent (int factionID, int parentID) |
Adds a direct parent to a faction. | |
void | RemoveFactionParent (int factionID, int parentID, bool inheritRelationships) |
Removes a direction parent from a faction. | |
int | GetPersonalityTraitID (string traitName) |
Gets a personality trait ID by its name. | |
float | GetPersonalityTrait (string factionName, int traitID) |
Gets a faction's personality trait value. | |
float | GetPersonalityTrait (int factionID, int traitID) |
Gets a faction's personality trait value. | |
void | SetPersonalityTrait (string factionName, int traitID, float value) |
Sets a faction's personality trait value. | |
void | SetPersonalityTrait (int factionID, int traitID, float value) |
Sets a faction's personality trait value. | |
int | GetRelationshipTraitID (string traitName) |
Gets a relationship trait ID by its name. | |
void | InheritTraitsFromParents (string factionName) |
Sets a faction's traits to the average of its parents' traits. | |
void | InheritTraitsFromParents (string factionName, FactionInheritanceType inheritanceType) |
Sets a faction's traits to its inherited parents' traits. | |
void | InheritTraitsFromParents (int factionID) |
Sets a faction's traits to the average of its parents' traits. | |
void | InheritTraitsFromParents (int factionID, FactionInheritanceType inheritanceType) |
Sets a faction's traits to its inherited parents' traits. | |
bool | FindPersonalRelationship (int judgeFactionID, int subjectFactionID, out Relationship relationship) |
Finds the personal relationship trait of a judging faction to a subject faction if it exists. | |
bool | FindPersonalRelationshipTrait (int judgeFactionID, int subjectFactionID, int traitID, out float value) |
Finds the personal relationship trait of a judging faction to a subject faction if it exists. | |
bool | FindRelationshipTrait (int judgeFactionID, int subjectFactionID, int traitID, out float value) |
Finds the relationship trait of a judging faction to a subject faction. | |
float | GetRelationshipTrait (int judgeFactionID, int subjectFactionID, int traitID) |
Gets a relationship trait of a judging faction to a subject faction. | |
float | GetRelationshipTrait (string judgeFactionName, string subjectFactionName, int traitID) |
Gets a judge's relationship trait to a subject using their faction names. | |
void | SetPersonalRelationshipTrait (int judgeFactionID, int subjectFactionID, int traitID, float value) |
Sets a faction's personal relationship trait to another faction. | |
void | SetPersonalRelationshipTrait (string judgeFactionName, string subjectFactionName, int traitID, float value) |
Sets a faction's personal relationship trait to another faction. | |
void | ModifyPersonalRelationshipTrait (int judgeFactionID, int subjectFactionID, int traitID, float change) |
Modifies (increments or decrements) a judge's personal relationship trait to a subject using their faction IDs. | |
void | ModifyPersonalRelationshipTrait (string judgeFactionName, string subjectFactionName, int traitID, float change) |
Modifies (increments or decrements) a judge's personal affinity to a subject using their faction names. | |
void | SetPersonalRelationshipInheritable (int judgeFactionID, int subjectFactionID, bool inheritable) |
void | SetPersonalRelationshipInheritable (string judgeFactionName, string subjectFactionName, bool inheritable) |
void | ShareRelationshipTraits (int judgeFactionID, int otherFactionID, int subjectFactionID) |
If the faction has personal relationship traits for a subject and the other doesn't, this gives them to the other based on the other's affinity for this faction. | |
bool | FindPersonalAffinity (int judgeFactionID, int subjectFactionID, out float affinity) |
Finds a 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 (and all other relationship traits) for the subject based on the other's affinity for this faction. | |
Public Attributes inherited from PixelCrushers.LoveHate.FactionDatabase | |
TraitDefinition[] | personalityTraitDefinitions = new TraitDefinition[0] |
The personality trait definitions. | |
TraitDefinition[] | relationshipTraitDefinitions = new TraitDefinition[1] { new TraitDefinition("Affinity", "(Required)") } |
The relationship trait definitions. | |
Preset[] | presets = new Preset[0] |
The presets. | |
Faction[] | factions = new Faction[0] |
The factions. | |
FactionInheritanceType | traitInheritanceType = FactionInheritanceType.Average |
How traits are inherited from parents. | |
FactionInheritanceType | relationshipInheritanceType = FactionInheritanceType.Average |
How relationships are inherited from parents. | |
int | nextID = 0 |
The next faction ID, used by the custom editor to auto-number factions. | |
Static Public Attributes inherited from PixelCrushers.LoveHate.FactionDatabase | |
const int | PlayerFactionID = 0 |
Faction ID 0 is reserved for the player. | |
Events inherited from PixelCrushers.LoveHate.FactionDatabase | |
PersonalityTraitChangedDelegate | personalityTraitChanged = delegate { } |
This wrapper keeps references intact if you switch between the compiled assembly and source code versions of the original class.