Barotrauma Client Doc
Barotrauma.Biome Class Reference
Inheritance diagram for Barotrauma.Biome:
Barotrauma.PrefabWithUintIdentifier Barotrauma.Prefab

Public Member Functions

readonly record struct SubmarineAvailability (Identifier LocationType, SubmarineClass Class=SubmarineClass.Undefined, int MaxTier=0)
 
 Biome (ContentXElement element, LevelGenerationParametersFile file)
 
int HighestSubmarineTierAvailable (SubmarineClass subClass, Identifier locationType)
 
bool IsSubmarineAvailable (SubmarineInfo info, Identifier locationType)
 
override void Dispose ()
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 

Static Public Member Functions

static Identifier ParseIdentifier (ContentXElement element)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Public Attributes

readonly Identifier OldIdentifier
 
readonly LocalizedString DisplayName
 
readonly LocalizedString Description
 
readonly bool IsEndBiome
 
readonly int EndBiomeLocationCount
 
readonly float MinDifficulty
 
readonly ImmutableHashSet< int > AllowedZones
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

static readonly PrefabCollection< BiomePrefabs = new PrefabCollection<Biome>()
 
- Static Public Attributes inherited from Barotrauma.Prefab
static readonly ImmutableHashSet< Type > Types
 

Properties

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

Additional Inherited Members

- 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 8 of file Biome.cs.

Constructor & Destructor Documentation

◆ Biome()

Barotrauma.Biome.Biome ( ContentXElement  element,
LevelGenerationParametersFile  file 
)

Definition at line 35 of file Biome.cs.

Member Function Documentation

◆ Dispose()

override void Barotrauma.Biome.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 111 of file Biome.cs.

◆ HighestSubmarineTierAvailable()

int Barotrauma.Biome.HighestSubmarineTierAvailable ( SubmarineClass  subClass,
Identifier  locationType 
)

Definition at line 86 of file Biome.cs.

◆ IsSubmarineAvailable()

bool Barotrauma.Biome.IsSubmarineAvailable ( SubmarineInfo  info,
Identifier  locationType 
)

◆ ParseIdentifier()

static Identifier Barotrauma.Biome.ParseIdentifier ( ContentXElement  element)
static

Definition at line 75 of file Biome.cs.

◆ SubmarineAvailability()

readonly record struct Barotrauma.Biome.SubmarineAvailability ( Identifier  LocationType,
SubmarineClass  Class = SubmarineClass.Undefined,
int  MaxTier = 0 
)

Member Data Documentation

◆ AllowedZones

readonly ImmutableHashSet<int> Barotrauma.Biome.AllowedZones

Definition at line 25 of file Biome.cs.

◆ Description

readonly LocalizedString Barotrauma.Biome.Description

Definition at line 14 of file Biome.cs.

◆ DisplayName

readonly LocalizedString Barotrauma.Biome.DisplayName

Definition at line 13 of file Biome.cs.

◆ EndBiomeLocationCount

readonly int Barotrauma.Biome.EndBiomeLocationCount

Definition at line 17 of file Biome.cs.

◆ IsEndBiome

readonly bool Barotrauma.Biome.IsEndBiome

Definition at line 16 of file Biome.cs.

◆ MinDifficulty

readonly float Barotrauma.Biome.MinDifficulty

Definition at line 19 of file Biome.cs.

◆ OldIdentifier

readonly Identifier Barotrauma.Biome.OldIdentifier

Definition at line 12 of file Biome.cs.

◆ Prefabs

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

Definition at line 10 of file Biome.cs.

Property Documentation

◆ ActualMaxDifficulty

float Barotrauma.Biome.ActualMaxDifficulty
get

Definition at line 21 of file Biome.cs.

◆ AdjustedMaxDifficulty

float Barotrauma.Biome.AdjustedMaxDifficulty
get

Definition at line 22 of file Biome.cs.