Class AgentData
The data of an Agent. Changes are reflected immediately.
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class AgentData : object
Properties
BlockLight
Whether this Agent can block light
Declaration
public bool BlockLight { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanBeHit
Whether this Agent can be hit and destroyed
Declaration
public bool CanBeHit { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanBurn
Whether this Agent can burn
Declaration
public bool CanBurn { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DeathAnim
The animation that plays when this Agent dies
Declaration
public Animation DeathAnim { get; set; }
Property Value
Type | Description |
---|---|
Animation |
Desc
The description of this Agent.
Declaration
public string Desc { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DrawnLayer
The z-index this Agent is drawn on, from 0-9. Higher numbers are drawn in front of lower numbers.
Declaration
public int DrawnLayer { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DropCargoOnDeath
Whether this Agent should drop its cargo when it dies
Declaration
public bool DropCargoOnDeath { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ForcefullyHostile
Whether this Agent is always hostile to the player, regardless of faction
Declaration
public bool ForcefullyHostile { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ID
This agent's file name
Declaration
public string ID { get; }
Property Value
Type | Description |
---|---|
System.String |
Integrity
How strong this Agent is against damage
Declaration
public EIntegrityStrength Integrity { get; set; }
Property Value
Type | Description |
---|---|
EIntegrityStrength |
MaxHealth
The maximum health points of this Agent
Declaration
public int MaxHealth { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
The name of this Agent.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PowerRequirement
The amount of power this Agent requires
Declaration
public int PowerRequirement { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ReputationOnKill
The reputation penalty the destroyer receives when this item is destroyed
Declaration
public int ReputationOnKill { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Selectable
Whether this Agent is selectable from the game UI
Declaration
public bool Selectable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SelfDelete
Whether this Agent will automatically delete itself when it is built over
Declaration
public bool SelfDelete { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
TTLPostDeath
Amount of seconds that this Agent lives on in the game after it "dies"
Declaration
public int TTLPostDeath { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Clone(String)
Clone this Agent's data.
Declaration
public AgentData Clone(string to)
Parameters
Type | Name | Description |
---|---|---|
System.String | to | The item ID to clone this Agent's data to |
Returns
Type | Description |
---|---|
AgentData | A copy of this AgentData |