work-in-progress More...
Public Member Functions | |
override string | ToString () |
ActorFaction | Copy () |
void | CopyTo (ActorFaction o) |
void | Init (int idx, plyBlox blox) |
void | SetStatusTowards (ActorFaction targetFaction, StatusTowardsOther status) |
Set Status of this faction towards another More... | |
StatusTowardsOther | GetStatusTowards (ActorFaction targetFaction) |
Returns Status of this faction towards another More... | |
plyVar | GetFactionVariable (string name, ActorFaction targetFaction) |
Return a reference to the named Faction Variable. Will return null if the variable does not exist. targetFaction is the faction that the variable is related to. All faction variables belongs to a faction and is related to another faction as seen in the factions editor var grid. More... | |
object | GetFactionVarValue (string name, ActorFaction targetFaction) |
Return the value of a Faction Variable. Return null if it does not exist. Keep in mind that the value might simply be null. targetFaction is the faction that the variable is related to. All faction variables belongs to a faction and is related to another faction as seen in the factions editor var grid. More... | |
void | SetFactionVarValue (string name, object val, ActorFaction targetFaction) |
Set the value of a Faction Variable. Will fail if variable doe snot exist. targetFaction is the faction that the variable is related to. All faction variables belongs to a faction and is related to another faction as seen in the factions editor var grid. More... | |
Public Attributes | |
UniqueID | id = new UniqueID() |
Unique Id of the Actor. Same for all instances of same Actor/ Character prefab. | |
CommonDefinitionData | def = new CommonDefinitionData() |
common data | |
List< StatusTowardsOther > | statusTo = new List<StatusTowardsOther>() |
Indexed according to order that Factions appears at in definitions list. | |
List< FactionVarList > | varListDef = new List<FactionVarList>() |
Do not use at runtime. Use the provided functions. The var list is a list if variables that are associated with each defined faction. | |
Properties | |
int | idx [get] |
work-in-progress
plyVar plyGame.ActorFaction.GetFactionVariable | ( | string | name, |
ActorFaction | targetFaction | ||
) |
Return a reference to the named Faction Variable. Will return null if the variable does not exist. targetFaction is the faction that the variable is related to. All faction variables belongs to a faction and is related to another faction as seen in the factions editor var grid.
object plyGame.ActorFaction.GetFactionVarValue | ( | string | name, |
ActorFaction | targetFaction | ||
) |
Return the value of a Faction Variable. Return null if it does not exist. Keep in mind that the value might simply be null. targetFaction is the faction that the variable is related to. All faction variables belongs to a faction and is related to another faction as seen in the factions editor var grid.
StatusTowardsOther plyGame.ActorFaction.GetStatusTowards | ( | ActorFaction | targetFaction | ) |
Returns Status of this faction towards another
void plyGame.ActorFaction.SetFactionVarValue | ( | string | name, |
object | val, | ||
ActorFaction | targetFaction | ||
) |
Set the value of a Faction Variable. Will fail if variable doe snot exist. targetFaction is the faction that the variable is related to. All faction variables belongs to a faction and is related to another faction as seen in the factions editor var grid.
void plyGame.ActorFaction.SetStatusTowards | ( | ActorFaction | targetFaction, |
StatusTowardsOther | status | ||
) |
Set Status of this faction towards another