Barotrauma Client Doc
Barotrauma.PrefabSelector< T > Class Template Reference
Inheritance diagram for Barotrauma.PrefabSelector< T >:

Public Member Functions

void Add (T prefab, bool isOverride)
 
void RemoveIfContains (T prefab)
 
void Remove (T prefab)
 
void RemoveByFile (ContentFile file, Action< T >? callback=null)
 
void Sort ()
 
bool Contains (T prefab)
 
bool IsOverride (T prefab)
 
IEnumerator< T > GetEnumerator ()
 

Properties

T? BasePrefab [get]
 
T? ActivePrefab [get]
 
bool IsEmpty [get]
 

Detailed Description

Type Constraints
T :notnull 
T :Prefab 

Definition at line 12 of file PrefabSelector.cs.

Member Function Documentation

◆ Add()

void Barotrauma.PrefabSelector< T >.Add ( prefab,
bool  isOverride 
)

Definition at line 32 of file PrefabSelector.cs.

◆ Contains()

bool Barotrauma.PrefabSelector< T >.Contains ( prefab)

Definition at line 84 of file PrefabSelector.cs.

◆ GetEnumerator()

IEnumerator<T> Barotrauma.PrefabSelector< T >.GetEnumerator ( )

Definition at line 156 of file PrefabSelector.cs.

◆ IsOverride()

bool Barotrauma.PrefabSelector< T >.IsOverride ( prefab)

Definition at line 89 of file PrefabSelector.cs.

◆ Remove()

void Barotrauma.PrefabSelector< T >.Remove ( prefab)

Definition at line 42 of file PrefabSelector.cs.

◆ RemoveByFile()

void Barotrauma.PrefabSelector< T >.RemoveByFile ( ContentFile  file,
Action< T >?  callback = null 
)

Definition at line 47 of file PrefabSelector.cs.

◆ RemoveIfContains()

void Barotrauma.PrefabSelector< T >.RemoveIfContains ( prefab)

Definition at line 37 of file PrefabSelector.cs.

◆ Sort()

void Barotrauma.PrefabSelector< T >.Sort ( )

Definition at line 71 of file PrefabSelector.cs.

Property Documentation

◆ ActivePrefab

T? Barotrauma.PrefabSelector< T >.ActivePrefab
get

Definition at line 24 of file PrefabSelector.cs.

◆ BasePrefab

T? Barotrauma.PrefabSelector< T >.BasePrefab
get

Definition at line 16 of file PrefabSelector.cs.

◆ IsEmpty

bool Barotrauma.PrefabSelector< T >.IsEmpty
get

Definition at line 76 of file PrefabSelector.cs.