Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.CaveGenerationParams Class Reference
Inheritance diagram for Barotrauma.CaveGenerationParams:
Barotrauma.PrefabWithUintIdentifier Barotrauma.ISerializableEntity Barotrauma.Prefab

Public Member Functions

float GetCommonness (LevelData levelData, bool abyss)
 
 CaveGenerationParams (ContentXElement element, CaveGenerationParametersFile file)
 
void Save (XElement element)
 
override void Dispose ()
 
- Public Member Functions inherited from Barotrauma.Prefab
 Prefab (ContentFile file, Identifier identifier)
 
 Prefab (ContentFile file, ContentXElement element)
 
void Dispose ()
 

Static Public Member Functions

static CaveGenerationParams GetRandom (Level level, bool abyss, Rand.RandSync rand)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Public Attributes

readonly Dictionary< Identifier, float > OverrideCommonness = new Dictionary<Identifier, float>()
 Overrides the commonness of the object in a specific level type. Key = name of the level type, value = commonness in that level type.
 
readonly Sprite WallSprite
 
readonly Sprite WallEdgeSprite
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

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

Properties

string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get, set]
 
float Commonness [get]
 
int MinWidth [get, set]
 
int MaxWidth [get, set]
 
int MinHeight [get, set]
 
int MaxHeight [get, set]
 
int MinBranchCount [get, set]
 
int MaxBranchCount [get, set]
 
int LevelObjectAmount [get, set]
 
float DestructibleWallRatio [get, set]
 
- Properties inherited from Barotrauma.PrefabWithUintIdentifier
UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 
- Properties inherited from Barotrauma.ISerializableEntity

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)
 

Constructor & Destructor Documentation

◆ CaveGenerationParams()

Barotrauma.CaveGenerationParams.CaveGenerationParams ( ContentXElement element,
CaveGenerationParametersFile file )

Member Function Documentation

◆ Dispose()

override void Barotrauma.CaveGenerationParams.Dispose ( )

◆ GetCommonness()

float Barotrauma.CaveGenerationParams.GetCommonness ( LevelData levelData,
bool abyss )

◆ GetRandom()

static CaveGenerationParams Barotrauma.CaveGenerationParams.GetRandom ( Level level,
bool abyss,
Rand.RandSync rand )
static

◆ Save()

void Barotrauma.CaveGenerationParams.Save ( XElement element)

Member Data Documentation

◆ CaveParams

readonly PrefabCollection<CaveGenerationParams> Barotrauma.CaveGenerationParams.CaveParams = new PrefabCollection<CaveGenerationParams>()
static

◆ OverrideCommonness

readonly Dictionary<Identifier, float> Barotrauma.CaveGenerationParams.OverrideCommonness = new Dictionary<Identifier, float>()

Overrides the commonness of the object in a specific level type. Key = name of the level type, value = commonness in that level type.

◆ WallEdgeSprite

readonly Sprite Barotrauma.CaveGenerationParams.WallEdgeSprite

◆ WallSprite

readonly Sprite Barotrauma.CaveGenerationParams.WallSprite

Property Documentation

◆ Commonness

float Barotrauma.CaveGenerationParams.Commonness
get

◆ DestructibleWallRatio

float Barotrauma.CaveGenerationParams.DestructibleWallRatio
getset

◆ LevelObjectAmount

int Barotrauma.CaveGenerationParams.LevelObjectAmount
getset

◆ MaxBranchCount

int Barotrauma.CaveGenerationParams.MaxBranchCount
getset

◆ MaxHeight

int Barotrauma.CaveGenerationParams.MaxHeight
getset

◆ MaxWidth

int Barotrauma.CaveGenerationParams.MaxWidth
getset

◆ MinBranchCount

int Barotrauma.CaveGenerationParams.MinBranchCount
getset

◆ MinHeight

int Barotrauma.CaveGenerationParams.MinHeight
getset

◆ MinWidth

int Barotrauma.CaveGenerationParams.MinWidth
getset

◆ Name

string Barotrauma.CaveGenerationParams.Name
get

◆ SerializableProperties

Dictionary<Identifier, SerializableProperty> Barotrauma.CaveGenerationParams.SerializableProperties
getset

The documentation for this class was generated from the following file: