Class LivingData
Data for NPCs and other "living" items (that move).
Inherited Members
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class LivingData : AgentData
Constructors
LivingData(String)
Get a LivingData.
Declaration
public LivingData(string forLiving)
Parameters
Type | Name | Description |
---|---|---|
System.String | forLiving | The ID of the living item to fetch |
Fields
MoveStats
Don't touch these.
Declaration
protected object MoveStats
Field Value
Type | Description |
---|---|
System.Object |
ReproductionDataFile
Declaration
protected string ReproductionDataFile
Field Value
Type | Description |
---|---|
System.String |
Properties
AddDepot
Add a depot to this Living (i.e. for traders)
Declaration
public bool AddDepot { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Age
Age of this Living
Declaration
public int Age { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
AI
AI type of this Living
Declaration
public ELivingAI AI { get; set; }
Property Value
Type | Description |
---|---|
ELivingAI |
AllowedJobs
Jobs this Living is allowed to do (empty for all jobs?)
Declaration
public List<EGameActivity> AllowedJobs { get; set; }
Property Value
Type | Description |
---|---|
List<EGameActivity> |
AnimDataFile
Animation data
TODO: LivingAnimation structure
Declaration
public string AnimDataFile { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BaseTraits
Traits this Living spawns with
Declaration
public List<Trait> BaseTraits { get; set; }
Property Value
Type | Description |
---|---|
List<Trait> |
BloodClutter
Clutter that drops on hit (i.e. blood)
Declaration
public ClutterData BloodClutter { get; set; }
Property Value
Type | Description |
---|---|
ClutterData |
BodyDefFile
Defines how to draw this Living. This is a file in data/bodies, or, if you're modifying via Lua, an instance of the LivingBodyDef class.
Declaration
public BodyDef BodyDefFile { get; set; }
Property Value
Type | Description |
---|---|
BodyDef |
BodyType
Body type of this Living
Declaration
public EBodyType BodyType { get; set; }
Property Value
Type | Description |
---|---|
EBodyType |
CanUseFists
If this Agent has no weapons, can they attack with their fists?
Declaration
public bool CanUseFists { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Category
What type of Living is this?
Declaration
public ELivingCategory Category { get; set; }
Property Value
Type | Description |
---|---|
ELivingCategory |
DeathSFX
SFX this Living emits when it dies
Declaration
public List<Sound> DeathSFX { get; set; }
Property Value
Type | Description |
---|---|
List<Sound> |
DisableAppearanceRandomizer
Randomize this Living's appearance?
Declaration
public bool DisableAppearanceRandomizer { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DisabledNeeds
Needs that do not affect this Living
Declaration
public List<ELivingNeed> DisabledNeeds { get; set; }
Property Value
Type | Description |
---|---|
List<ELivingNeed> |
DisableMoodHandling
Disable mood handling (?)
Declaration
public bool DisableMoodHandling { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DisableNameGenerator
Generate a name for this Living?
Declaration
public bool DisableNameGenerator { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DisableSpeechBubble
Disable speech bubbles
Declaration
public bool DisableSpeechBubble { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EquipmentFile
Equipment this Living should spawn with
Declaration
public List<LivingEquipmentList> EquipmentFile { get; set; }
Property Value
Type | Description |
---|---|
List<LivingEquipmentList> |
FaunaPassive
If true, this Living is passive and will not attack
Declaration
public bool FaunaPassive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ForbiddenJobs
Jobs this Living will never be allowed to do
Declaration
public List<EGameActivity> ForbiddenJobs { get; set; }
Property Value
Type | Description |
---|---|
List<EGameActivity> |
HitSFX
SFX this Living emits when it is hit
Declaration
public List<Sound> HitSFX { get; set; }
Property Value
Type | Description |
---|---|
List<Sound> |
IgnoreTraits
Ignore traits like sickness and wounds
Declaration
public bool IgnoreTraits { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
JobAptitude
How good this settler is at their job
Declaration
public LivingJobAptitude JobAptitude { get; set; }
Property Value
Type | Description |
---|---|
LivingJobAptitude |
RandomSFX
Random SFX this Living emits
Declaration
public List<Sound> RandomSFX { get; set; }
Property Value
Type | Description |
---|---|
List<Sound> |
Sex
Sex of this Living
Declaration
public ESex Sex { get; set; }
Property Value
Type | Description |
---|---|
ESex |
ShowFootprints
Show this Living's footprints
Declaration
public bool ShowFootprints { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SkinColor
Skin color of this Living
Declaration
public ESkinColor SkinColor { get; set; }
Property Value
Type | Description |
---|---|
ESkinColor |
Stats
Statistics (i.e. intelligence, perception...) of this Living
Declaration
public LivingStats Stats { get; set; }
Property Value
Type | Description |
---|---|
LivingStats |
TraitGenerator
Trait generator type
Declaration
public ETraitGivingMode TraitGenerator { get; set; }
Property Value
Type | Description |
---|---|
ETraitGivingMode |
Methods
GetAllowedJobs()
Get the AllowedJobs JSON property.
Declaration
public List<EGameActivity> GetAllowedJobs()
Returns
Type | Description |
---|---|
List<EGameActivity> |
GetBaseTraits()
Get the BaseTraits JSON property.
Declaration
public List<Trait> GetBaseTraits()
Returns
Type | Description |
---|---|
List<Trait> |
GetDeathSFX()
Get the DeathSFX JSON property.
Declaration
public List<Sound> GetDeathSFX()
Returns
Type | Description |
---|---|
List<Sound> |
GetDisabledNeeds()
Get the DisabledNeeds JSON property.
Declaration
public List<ELivingNeed> GetDisabledNeeds()
Returns
Type | Description |
---|---|
List<ELivingNeed> |
GetEquipmentFile()
Get the EquipmentFile JSON property.
Declaration
public List<LivingEquipmentList> GetEquipmentFile()
Returns
Type | Description |
---|---|
List<LivingEquipmentList> |
GetForbiddenJobs()
Get the ForbiddenJobs JSON property.
Declaration
public List<EGameActivity> GetForbiddenJobs()
Returns
Type | Description |
---|---|
List<EGameActivity> |
GetHitSFX()
Get the HitSFX JSON property.
Declaration
public List<Sound> GetHitSFX()
Returns
Type | Description |
---|---|
List<Sound> |
GetRandomSFX()
Get the RandomSFX JSON property.
Declaration
public List<Sound> GetRandomSFX()
Returns
Type | Description |
---|---|
List<Sound> |
SetAllowedJobs(List<EGameActivity>)
Set the AllowedJobs JSON property.
Declaration
public void SetAllowedJobs(List<EGameActivity> value)
Parameters
Type | Name | Description |
---|---|---|
List<EGameActivity> | value |
SetBaseTraits(List<Trait>)
Set the BaseTraits JSON property.
Declaration
public void SetBaseTraits(List<Trait> value)
Parameters
Type | Name | Description |
---|---|---|
List<Trait> | value |
SetDeathSFX(List<Sound>)
Set the DeathSFX JSON property.
Declaration
public void SetDeathSFX(List<Sound> value)
Parameters
Type | Name | Description |
---|---|---|
List<Sound> | value |
SetDisabledNeeds(List<ELivingNeed>)
Set the DisabledNeeds JSON property.
Declaration
public void SetDisabledNeeds(List<ELivingNeed> value)
Parameters
Type | Name | Description |
---|---|---|
List<ELivingNeed> | value |
SetEquipmentFile(List<LivingEquipmentList>)
Set the EquipmentFile JSON property.
Declaration
public void SetEquipmentFile(List<LivingEquipmentList> value)
Parameters
Type | Name | Description |
---|---|---|
List<LivingEquipmentList> | value |
SetForbiddenJobs(List<EGameActivity>)
Set the ForbiddenJobs JSON property.
Declaration
public void SetForbiddenJobs(List<EGameActivity> value)
Parameters
Type | Name | Description |
---|---|---|
List<EGameActivity> | value |
SetHitSFX(List<Sound>)
Set the HitSFX JSON property.
Declaration
public void SetHitSFX(List<Sound> value)
Parameters
Type | Name | Description |
---|---|---|
List<Sound> | value |
SetRandomSFX(List<Sound>)
Set the RandomSFX JSON property.
Declaration
public void SetRandomSFX(List<Sound> value)
Parameters
Type | Name | Description |
---|---|---|
List<Sound> | value |