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

Public Member Functions

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

Public Attributes

bool AbilityEffectsStackWithSameTalent
 When set to false the AbilityEffects of multiple of the same talent will not be checked and only the first one. More...
 
readonly Sprite Icon
 
readonly Option< Color > ColorOverride
 
readonly ImmutableHashSet< TalentMigration > Migrations
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

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

Properties

string OriginalName [get]
 
LocalizedString DisplayName [get]
 
LocalizedString Description [get]
 
ContentXElement ConfigElement [get]
 
- Properties inherited from Barotrauma.PrefabWithUintIdentifier
UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 
- 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 10 of file TalentPrefab.cs.

Constructor & Destructor Documentation

◆ TalentPrefab()

Barotrauma.TalentPrefab.TalentPrefab ( ContentXElement  element,
TalentsFile  file 
)

Definition at line 39 of file TalentPrefab.cs.

Member Function Documentation

◆ Dispose()

override void Barotrauma.TalentPrefab.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 108 of file TalentPrefab.cs.

Member Data Documentation

◆ AbilityEffectsStackWithSameTalent

bool Barotrauma.TalentPrefab.AbilityEffectsStackWithSameTalent

When set to false the AbilityEffects of multiple of the same talent will not be checked and only the first one.

Definition at line 21 of file TalentPrefab.cs.

◆ ColorOverride

readonly Option<Color> Barotrauma.TalentPrefab.ColorOverride

Definition at line 26 of file TalentPrefab.cs.

◆ Icon

readonly Sprite Barotrauma.TalentPrefab.Icon

Definition at line 23 of file TalentPrefab.cs.

◆ Migrations

readonly ImmutableHashSet<TalentMigration> Barotrauma.TalentPrefab.Migrations

Definition at line 31 of file TalentPrefab.cs.

◆ TalentPrefabs

readonly PrefabCollection<TalentPrefab> Barotrauma.TalentPrefab.TalentPrefabs = new PrefabCollection<TalentPrefab>()
static

Definition at line 29 of file TalentPrefab.cs.

Property Documentation

◆ ConfigElement

ContentXElement Barotrauma.TalentPrefab.ConfigElement
get

Definition at line 33 of file TalentPrefab.cs.

◆ Description

LocalizedString Barotrauma.TalentPrefab.Description
get

Definition at line 16 of file TalentPrefab.cs.

◆ DisplayName

LocalizedString Barotrauma.TalentPrefab.DisplayName
get

Definition at line 14 of file TalentPrefab.cs.

◆ OriginalName

string Barotrauma.TalentPrefab.OriginalName
get

Definition at line 12 of file TalentPrefab.cs.