Barotrauma Client Doc
Barotrauma.PrefabWithUintIdentifier Class Reference

Prefab that has a property serves as a deterministic hash of a prefab's identifier. This member is filled automatically by PrefabCollection.Add. Required for GetRandom to work on arbitrary Prefab enumerables, recommended for network synchronization. More...

Inheritance diagram for Barotrauma.PrefabWithUintIdentifier:
Barotrauma.Prefab Barotrauma.AfflictionPrefab Barotrauma.Biome Barotrauma.CaveGenerationParams Barotrauma.CharacterPrefab Barotrauma.DecalPrefab Barotrauma.EventManagerSettings Barotrauma.HumanPrefab Barotrauma.JobPrefab Barotrauma.JobPrefab Barotrauma.LevelGenerationParams Barotrauma.LevelObjectPrefab Barotrauma.LevelObjectPrefab Barotrauma.LocationType Barotrauma.MapEntityPrefab Barotrauma.MapEntityPrefab Barotrauma.MissionPrefab Barotrauma.MissionPrefab Barotrauma.NPCPersonalityTrait Barotrauma.OrderPrefab Barotrauma.OutpostGenerationParams Barotrauma.TalentPrefab Barotrauma.WreckAIConfig

Protected Member Functions

 PrefabWithUintIdentifier (ContentFile file, Identifier identifier)
 
 PrefabWithUintIdentifier (ContentFile file, ContentXElement element)
 
- Protected Member Functions inherited from Barotrauma.Prefab
virtual Identifier DetermineIdentifier (XElement element)
 

Properties

UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 

Additional Inherited Members

- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 
abstract void Dispose ()
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Detailed Description

Prefab that has a property serves as a deterministic hash of a prefab's identifier. This member is filled automatically by PrefabCollection.Add. Required for GetRandom to work on arbitrary Prefab enumerables, recommended for network synchronization.

Definition at line 11 of file PrefabWithUintIdentifier.cs.

Constructor & Destructor Documentation

◆ PrefabWithUintIdentifier() [1/2]

Barotrauma.PrefabWithUintIdentifier.PrefabWithUintIdentifier ( ContentFile  file,
Identifier  identifier 
)
protected

Definition at line 15 of file PrefabWithUintIdentifier.cs.

◆ PrefabWithUintIdentifier() [2/2]

Barotrauma.PrefabWithUintIdentifier.PrefabWithUintIdentifier ( ContentFile  file,
ContentXElement  element 
)
protected

Definition at line 17 of file PrefabWithUintIdentifier.cs.

Property Documentation

◆ UintIdentifier

UInt32 Barotrauma.PrefabWithUintIdentifier.UintIdentifier
getset

Definition at line 13 of file PrefabWithUintIdentifier.cs.