Class Faction
Contains agents and determines relationships.
Inheritance
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class Faction : object
Constructors
Faction(String)
Get a Faction based on its name (i.e. it should have data).
Declaration
public Faction(string factionName)
Parameters
Type | Name | Description |
---|---|---|
System.String | factionName | The name of the faction to get. |
Properties
AgentCount
The number of Agents that are part of this Faction
Declaration
public int AgentCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
ID
The unique ID of this Faction (i.e. player, hostile...)
Declaration
public string ID { get; }
Property Value
Type | Description |
---|---|
System.String |
Logo
This faction's logo (as displayed in menus)
Declaration
public Texture Logo { get; set; }
Property Value
Type | Description |
---|---|
Texture |
Money
The amount of money this Faction has
Declaration
public int Money { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
The name of this Faction.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
UnlockedTechs
The Techs this Faction has unlocked
Declaration
public List<Tech> UnlockedTechs { get; }
Property Value
Type | Description |
---|---|
List<Tech> |
Methods
GetRelationshipWith(Faction)
Get the relationship between this faction and another faction
Declaration
public EFactionRelationship GetRelationshipWith(Faction target)
Parameters
Type | Name | Description |
---|---|---|
Faction | target | The other faction |
Returns
Type | Description |
---|---|
EFactionRelationship | The relationship this faction has with the other one |
LockTech(Tech)
Lock a Tech
Declaration
public void LockTech(Tech tech)
Parameters
Type | Name | Description |
---|---|---|
Tech | tech | The Tech to lock |
SetRelationshipWith(Faction, EFactionRelationship)
Set this faction's relationship with another faction's
Declaration
public void SetRelationshipWith(Faction target, EFactionRelationship relationship)
Parameters
Type | Name | Description |
---|---|---|
Faction | target | The other faction |
EFactionRelationship | relationship | The relationship this faction will have with the other one |
SetType(EFactionType)
Set this faction's type. This will reset all of its relationships.
Declaration
public void SetType(EFactionType type)
Parameters
Type | Name | Description |
---|---|---|
EFactionType | type | The type of faction this should be |
UnlockTech(Tech)
Unlock a Tech
Declaration
public void UnlockTech(Tech tech)
Parameters
Type | Name | Description |
---|---|---|
Tech | tech | The Tech to unlock |