Barotrauma Client Doc
Barotrauma.CharacterPrefab Class Reference
Inheritance diagram for Barotrauma.CharacterPrefab:
Barotrauma.PrefabWithUintIdentifier Barotrauma.IImplementsVariants< CharacterPrefab > Barotrauma.Prefab

Public Member Functions

override void Dispose ()
 
void InheritFrom (CharacterPrefab parent)
 
 CharacterPrefab (ContentXElement mainElement, CharacterFile file)
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 
- Public Member Functions inherited from Barotrauma.IImplementsVariants< CharacterPrefab >
void InheritFrom (T parent)
 

Static Public Member Functions

static CharacterPrefab FindBySpeciesName (Identifier speciesName)
 
static CharacterPrefab FindByFilePath (string filePath)
 
static CharacterPrefab Find (Predicate< CharacterPrefab > predicate)
 
static Identifier ParseName (XElement element, CharacterFile file)
 
static bool CheckSpeciesName (XElement mainElement, CharacterFile file, out Identifier name)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Static Public Attributes

static readonly PrefabCollection< CharacterPrefabPrefabs = new PrefabCollection<CharacterPrefab>()
 
static readonly Identifier HumanSpeciesName = "human".ToIdentifier()
 
static readonly Identifier HumanGroup = "human".ToIdentifier()
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Properties

string Name [get]
 
Identifier VariantOf [get]
 
CharacterPrefab ParentPrefab [get, set]
 
ContentXElement ConfigElement [get]
 
CharacterInfoPrefab CharacterInfoPrefab [get]
 
static IEnumerable< ContentXElementConfigElements [get]
 
static CharacterFile HumanConfigFile [get]
 
static CharacterPrefab HumanPrefab [get]
 
- Properties inherited from Barotrauma.PrefabWithUintIdentifier
UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 
- Properties inherited from Barotrauma.IImplementsVariants< CharacterPrefab >
Identifier VariantOf [get]
 
T? ParentPrefab [get, set]
 

Additional Inherited Members

- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 
- 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 9 of file CharacterPrefab.cs.

Constructor & Destructor Documentation

◆ CharacterPrefab()

Barotrauma.CharacterPrefab.CharacterPrefab ( ContentXElement  mainElement,
CharacterFile  file 
)

Definition at line 70 of file CharacterPrefab.cs.

Member Function Documentation

◆ CheckSpeciesName()

static bool Barotrauma.CharacterPrefab.CheckSpeciesName ( XElement  mainElement,
CharacterFile  file,
out Identifier  name 
)
static

Definition at line 93 of file CharacterPrefab.cs.

◆ Dispose()

override void Barotrauma.CharacterPrefab.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 13 of file CharacterPrefab.cs.

◆ Find()

static CharacterPrefab Barotrauma.CharacterPrefab.Find ( Predicate< CharacterPrefab predicate)
static

Definition at line 65 of file CharacterPrefab.cs.

◆ FindByFilePath()

static CharacterPrefab Barotrauma.CharacterPrefab.FindByFilePath ( string  filePath)
static

Definition at line 60 of file CharacterPrefab.cs.

◆ FindBySpeciesName()

static CharacterPrefab Barotrauma.CharacterPrefab.FindBySpeciesName ( Identifier  speciesName)
static

Definition at line 54 of file CharacterPrefab.cs.

◆ InheritFrom()

void Barotrauma.CharacterPrefab.InheritFrom ( CharacterPrefab  parent)

Definition at line 22 of file CharacterPrefab.cs.

◆ ParseName()

static Identifier Barotrauma.CharacterPrefab.ParseName ( XElement  element,
CharacterFile  file 
)
static

Definition at line 79 of file CharacterPrefab.cs.

Member Data Documentation

◆ HumanGroup

readonly Identifier Barotrauma.CharacterPrefab.HumanGroup = "human".ToIdentifier()
static

Definition at line 49 of file CharacterPrefab.cs.

◆ HumanSpeciesName

readonly Identifier Barotrauma.CharacterPrefab.HumanSpeciesName = "human".ToIdentifier()
static

Definition at line 48 of file CharacterPrefab.cs.

◆ Prefabs

readonly PrefabCollection<CharacterPrefab> Barotrauma.CharacterPrefab.Prefabs = new PrefabCollection<CharacterPrefab>()
static

Definition at line 11 of file CharacterPrefab.cs.

Property Documentation

◆ CharacterInfoPrefab

CharacterInfoPrefab Barotrauma.CharacterPrefab.CharacterInfoPrefab
get

Definition at line 44 of file CharacterPrefab.cs.

◆ ConfigElement

ContentXElement Barotrauma.CharacterPrefab.ConfigElement
get

Definition at line 42 of file CharacterPrefab.cs.

◆ ConfigElements

IEnumerable<ContentXElement> Barotrauma.CharacterPrefab.ConfigElements
staticget

Definition at line 46 of file CharacterPrefab.cs.

◆ HumanConfigFile

CharacterFile Barotrauma.CharacterPrefab.HumanConfigFile
staticget

Definition at line 51 of file CharacterPrefab.cs.

◆ HumanPrefab

CharacterPrefab Barotrauma.CharacterPrefab.HumanPrefab
staticget

Definition at line 52 of file CharacterPrefab.cs.

◆ Name

string Barotrauma.CharacterPrefab.Name
get

Definition at line 18 of file CharacterPrefab.cs.

◆ ParentPrefab

CharacterPrefab Barotrauma.CharacterPrefab.ParentPrefab
getset

Definition at line 20 of file CharacterPrefab.cs.

◆ VariantOf

Identifier Barotrauma.CharacterPrefab.VariantOf
get

Definition at line 19 of file CharacterPrefab.cs.