Barotrauma Client Doc
Barotrauma.TalentTree Class Reference
Inheritance diagram for Barotrauma.TalentTree:
Barotrauma.Prefab

Public Types

enum class  TalentTreeStageState {
  Invalid , Locked , Unlocked , Available ,
  Highlighted
}
 

Public Member Functions

 TalentTree (ContentXElement element, TalentTreesFile file)
 
bool TalentIsInTree (Identifier talentIdentifier)
 
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 bool IsViableTalentForCharacter (Character character, Identifier talentIdentifier)
 
static TalentTreeStageState GetTalentOptionStageState (Character character, Identifier subTreeIdentifier, int index, List< Identifier > selectedTalents)
 
static bool IsViableTalentForCharacter (Character character, Identifier talentIdentifier, ICollection< Identifier > selectedTalents)
 
static List< IdentifierCheckTalentSelection (Character controlledCharacter, IEnumerable< Identifier > selectedTalents)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Public Attributes

readonly ImmutableArray< TalentSubTreeTalentSubTrees
 
readonly ImmutableHashSet< IdentifierAllTalentIdentifiers
 Talent identifiers of all the talents in this tree More...
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

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

Properties

ContentXElement ConfigElement [get]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Additional Inherited Members

- Protected Member Functions inherited from Barotrauma.Prefab
virtual Identifier DetermineIdentifier (XElement element)
 

Detailed Description

Definition at line 8 of file TalentTree.cs.

Member Enumeration Documentation

◆ TalentTreeStageState

Enumerator
Invalid 
Locked 
Unlocked 
Available 
Highlighted 

Definition at line 10 of file TalentTree.cs.

Constructor & Destructor Documentation

◆ TalentTree()

Barotrauma.TalentTree.TalentTree ( ContentXElement  element,
TalentTreesFile  file 
)

Definition at line 34 of file TalentTree.cs.

Member Function Documentation

◆ CheckTalentSelection()

static List<Identifier> Barotrauma.TalentTree.CheckTalentSelection ( Character  controlledCharacter,
IEnumerable< Identifier selectedTalents 
)
static

Definition at line 150 of file TalentTree.cs.

◆ Dispose()

override void Barotrauma.TalentTree.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 170 of file TalentTree.cs.

◆ GetTalentOptionStageState()

static TalentTreeStageState Barotrauma.TalentTree.GetTalentOptionStageState ( Character  character,
Identifier  subTreeIdentifier,
int  index,
List< Identifier selectedTalents 
)
static

Definition at line 65 of file TalentTree.cs.

◆ IsViableTalentForCharacter() [1/2]

static bool Barotrauma.TalentTree.IsViableTalentForCharacter ( Character  character,
Identifier  talentIdentifier 
)
static

Definition at line 58 of file TalentTree.cs.

◆ IsViableTalentForCharacter() [2/2]

static bool Barotrauma.TalentTree.IsViableTalentForCharacter ( Character  character,
Identifier  talentIdentifier,
ICollection< Identifier selectedTalents 
)
static

Definition at line 119 of file TalentTree.cs.

◆ TalentIsInTree()

bool Barotrauma.TalentTree.TalentIsInTree ( Identifier  talentIdentifier)

Definition at line 53 of file TalentTree.cs.

Member Data Documentation

◆ AllTalentIdentifiers

readonly ImmutableHashSet<Identifier> Barotrauma.TalentTree.AllTalentIdentifiers

Talent identifiers of all the talents in this tree

Definition at line 26 of file TalentTree.cs.

◆ JobTalentTrees

readonly PrefabCollection<TalentTree> Barotrauma.TalentTree.JobTalentTrees = new PrefabCollection<TalentTree>()
static

Definition at line 19 of file TalentTree.cs.

◆ TalentSubTrees

readonly ImmutableArray<TalentSubTree> Barotrauma.TalentTree.TalentSubTrees

Definition at line 21 of file TalentTree.cs.

Property Documentation

◆ ConfigElement

ContentXElement Barotrauma.TalentTree.ConfigElement
get

Definition at line 28 of file TalentTree.cs.