Click or drag to resize

Trait Class

Traits that Livings can have
Inheritance Hierarchy
SystemObject
  Mannequin.BindingsTrait

Namespace:  Mannequin.Bindings
Assembly:  Collapse (in Collapse.exe) Version: 0.4.6.1290 (0.4.6.1290)
Syntax
C#
public class Trait

The Trait type exposes the following members.

Constructors
  NameDescription
Public methodTrait(SettlerTrait)
Initializes a new instance of the Trait class
Public methodTrait(String)
Get a trait by asset name
Top
Properties
  NameDescription
Public propertyCanBeAutoAssigned
Whether this trait can be automatically assigned by the procedural generation manager
Public propertyDescription
Description of this trait
Public propertyDuration
Length this trait can affect a Survivor
Public propertyEffect
Get or set the TraitEffect of this trait
Public propertyIncompatibleTraits
A list of incompatible traits.
Public propertyLethal
Whether this trait is lethal or not
Public propertyName
Name of this trait
Public propertyVisible
Whether this trait is visible in the UI or not
Top
Methods
  NameDescription
Public methodAddIncompatibleTrait
Add an incompatible trait.
Public methodAddNeedMod
Add a need mod, or how this trait affects a Living's Needs.
Public methodIsIncompatibleTrait
Check whether a trait is marked as incompatible with this one.
Public methodNeedModEffects
Get the effects this Trait has on a Need.
Public methodRemoveIncompatibleTrait
Remove an incompatible trait.
Public methodRemoveNeedMod(AgentNeed)
Remove a need mod
Public methodRemoveNeedMod(AgentNeed, Int32)
Remove a need mod that has a certain effect
Top
See Also