Barotrauma Client Doc
Barotrauma.GenericPrefabFile< T > Class Template Referenceabstract
Inheritance diagram for Barotrauma.GenericPrefabFile< T >:
Barotrauma.ContentFile

Public Member Functions

override sealed void LoadFile ()
 
override sealed void UnloadFile ()
 
sealed override void Sort ()
 
- Public Member Functions inherited from Barotrauma.ContentFile
virtual void Preload (Action< Sprite > addPreloadedSprite)
 
virtual Md5Hash CalculateHash ()
 

Protected Member Functions

 GenericPrefabFile (ContentPackage contentPackage, ContentPath path)
 
abstract bool MatchesSingular (Identifier identifier)
 
abstract bool MatchesPlural (Identifier identifier)
 
abstract T CreatePrefab (ContentXElement element)
 
- Protected Member Functions inherited from Barotrauma.ContentFile
 ContentFile (ContentPackage contentPackage, ContentPath path)
 

Properties

abstract PrefabCollection< T > Prefabs [get]
 
- Properties inherited from Barotrauma.ContentFile
bool NotSyncedInMultiplayer [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.ContentFile
static bool IsLegacyContentType (XElement contentFileElement, ContentPackage package, bool logWarning)
 
static Result< ContentFile, ContentPackage.LoadErrorCreateFromXElement (ContentPackage contentPackage, XElement element)
 
- Public Attributes inherited from Barotrauma.ContentFile
readonly ContentPackage ContentPackage
 
readonly ContentPath Path
 
readonly Md5Hash Hash
 
- Static Public Attributes inherited from Barotrauma.ContentFile
static readonly ImmutableHashSet< TypeInfoTypes
 

Detailed Description

Type Constraints
T :Prefab 

Definition at line 6 of file GenericPrefabFile.cs.

Constructor & Destructor Documentation

◆ GenericPrefabFile()

Barotrauma.GenericPrefabFile< T >.GenericPrefabFile ( ContentPackage  contentPackage,
ContentPath  path 
)
protected

Definition at line 8 of file GenericPrefabFile.cs.

Member Function Documentation

◆ CreatePrefab()

◆ LoadFile()

override sealed void Barotrauma.GenericPrefabFile< T >.LoadFile ( )
virtual

Implements Barotrauma.ContentFile.

Definition at line 62 of file GenericPrefabFile.cs.

◆ MatchesPlural()

◆ MatchesSingular()

◆ Sort()

sealed override void Barotrauma.GenericPrefabFile< T >.Sort ( )
virtual

Implements Barotrauma.ContentFile.

Definition at line 76 of file GenericPrefabFile.cs.

◆ UnloadFile()

override sealed void Barotrauma.GenericPrefabFile< T >.UnloadFile ( )
virtual

Implements Barotrauma.ContentFile.

Definition at line 71 of file GenericPrefabFile.cs.

Property Documentation

◆ Prefabs

abstract PrefabCollection<T> Barotrauma.GenericPrefabFile< T >.Prefabs
getprotected

Definition at line 12 of file GenericPrefabFile.cs.