Loading...
Searching...
No Matches
PixelCrushers.LoveHate.ORKFrameworkSupport.OrkFactionManager Class Reference

This subclass of FactionManager integrates with ORK's save system. More...

Inheritance diagram for PixelCrushers.LoveHate.ORKFrameworkSupport.OrkFactionManager:
Collaboration diagram for PixelCrushers.LoveHate.ORKFrameworkSupport.OrkFactionManager:

Public Member Functions

DataObject SaveGame ()
 
void LoadGame (DataObject data)
 
- 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)
 

Protected Member Functions

override void Start ()
 
- Protected Member Functions inherited from PixelCrushers.LoveHate.FactionManager
virtual void Awake ()
 

Additional Inherited Members

- 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.
 
- Properties inherited from PixelCrushers.LoveHate.FactionManager
Dictionary< int, Factionfactions [get]
 
Dictionary< Faction, List< FactionMember > > members [get]
 
static FactionManager instance [get, set]
 

Detailed Description

This subclass of FactionManager integrates with ORK's save system.

In an ORK project, use it instead of FactionManager.

Member Function Documentation

◆ LoadGame()

void PixelCrushers.LoveHate.ORKFrameworkSupport.OrkFactionManager.LoadGame ( DataObject  data)
inline

◆ SaveGame()

DataObject PixelCrushers.LoveHate.ORKFrameworkSupport.OrkFactionManager.SaveGame ( )
inline

◆ Start()

override void PixelCrushers.LoveHate.ORKFrameworkSupport.OrkFactionManager.Start ( )
inlineprotectedvirtual

The documentation for this class was generated from the following file: