Barotrauma Client Doc
Barotrauma.NPCPersonalityTrait Class Reference
Inheritance diagram for Barotrauma.NPCPersonalityTrait:
Barotrauma.PrefabWithUintIdentifier Barotrauma.Prefab

Public Member Functions

 NPCPersonalityTrait (XElement element, NPCPersonalityTraitsFile file)
 
override void Dispose ()
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 

Static Public Member Functions

static NPCPersonalityTrait GetRandom (string seed)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Public Attributes

readonly LocalizedString DisplayName
 
readonly List< string > AllowedDialogTags
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

static readonly PrefabCollection< NPCPersonalityTraitTraits = new PrefabCollection<NPCPersonalityTrait>()
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Properties

float Commonness [get]
 
- Properties inherited from Barotrauma.PrefabWithUintIdentifier
UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Additional Inherited Members

- Protected Member Functions inherited from Barotrauma.PrefabWithUintIdentifier
 PrefabWithUintIdentifier (ContentFile file, Identifier identifier)
 
 PrefabWithUintIdentifier (ContentFile file, ContentXElement element)
 
- Protected Member Functions inherited from Barotrauma.Prefab
virtual Identifier DetermineIdentifier (XElement element)
 

Detailed Description

Definition at line 8 of file NPCPersonalityTrait.cs.

Constructor & Destructor Documentation

◆ NPCPersonalityTrait()

Barotrauma.NPCPersonalityTrait.NPCPersonalityTrait ( XElement  element,
NPCPersonalityTraitsFile  file 
)

Definition at line 22 of file NPCPersonalityTrait.cs.

Member Function Documentation

◆ Dispose()

override void Barotrauma.NPCPersonalityTrait.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 45 of file NPCPersonalityTrait.cs.

◆ GetRandom()

static NPCPersonalityTrait Barotrauma.NPCPersonalityTrait.GetRandom ( string  seed)
static

Definition at line 39 of file NPCPersonalityTrait.cs.

Member Data Documentation

◆ AllowedDialogTags

readonly List<string> Barotrauma.NPCPersonalityTrait.AllowedDialogTags

Definition at line 14 of file NPCPersonalityTrait.cs.

◆ DisplayName

readonly LocalizedString Barotrauma.NPCPersonalityTrait.DisplayName

Definition at line 12 of file NPCPersonalityTrait.cs.

◆ Traits

readonly PrefabCollection<NPCPersonalityTrait> Barotrauma.NPCPersonalityTrait.Traits = new PrefabCollection<NPCPersonalityTrait>()
static

Definition at line 10 of file NPCPersonalityTrait.cs.

Property Documentation

◆ Commonness

float Barotrauma.NPCPersonalityTrait.Commonness
get

Definition at line 17 of file NPCPersonalityTrait.cs.