Barotrauma Client Doc
Barotrauma.Prefab Class Referenceabstract
Inheritance diagram for Barotrauma.Prefab:
Barotrauma.BallastFloraPrefab Barotrauma.CPRSettings Barotrauma.CharacterHealth.DamageOverlayPrefab Barotrauma.EventPrefab Barotrauma.EventSet Barotrauma.EventSprite Barotrauma.GUIPrefab Barotrauma.GrimeSprite Barotrauma.ItemRepairPriority Barotrauma.MapGenerationParams Barotrauma.NPCConversationCollection Barotrauma.OrderCategoryIcon Barotrauma.Particles.ParticlePrefab Barotrauma.PrefabWithUintIdentifier Barotrauma.SkillSettings Barotrauma.SlideshowPrefab Barotrauma.SoundPrefab Barotrauma.TutorialPrefab Barotrauma.UpgradeContentPrefab

Public Member Functions

 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 
abstract void Dispose ()
 

Static Public Member Functions

static void DisallowCallFromConstructor ()
 

Public Attributes

readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

static readonly ImmutableHashSet< Type > Types
 

Protected Member Functions

virtual Identifier DetermineIdentifier (XElement element)
 

Properties

ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Detailed Description

Definition at line 10 of file Prefab.cs.

Constructor & Destructor Documentation

◆ Prefab() [1/2]

Barotrauma.Prefab.Prefab ( ContentFile  file,
Identifier  identifier 
)

Definition at line 40 of file Prefab.cs.

◆ Prefab() [2/2]

Barotrauma.Prefab.Prefab ( ContentFile  file,
ContentXElement  element 
)

Definition at line 48 of file Prefab.cs.

Member Function Documentation

◆ DetermineIdentifier()

virtual Identifier Barotrauma.Prefab.DetermineIdentifier ( XElement  element)
protectedvirtual

◆ DisallowCallFromConstructor()

static void Barotrauma.Prefab.DisallowCallFromConstructor ( )
static

Definition at line 19 of file Prefab.cs.

◆ Dispose()

Member Data Documentation

◆ ContentFile

readonly ContentFile Barotrauma.Prefab.ContentFile

Definition at line 35 of file Prefab.cs.

◆ Identifier

readonly Identifier Barotrauma.Prefab.Identifier

Definition at line 34 of file Prefab.cs.

◆ Types

readonly ImmutableHashSet<Type> Barotrauma.Prefab.Types
static

Definition at line 12 of file Prefab.cs.

Property Documentation

◆ ContentPackage

ContentPackage? Barotrauma.Prefab.ContentPackage
get

Definition at line 37 of file Prefab.cs.

◆ FilePath

ContentPath Barotrauma.Prefab.FilePath
get

Definition at line 38 of file Prefab.cs.