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

Public Member Functions

bool UseRandomRuinCount ()
 
int GetMaxRuinCount ()
 
 LevelGenerationParams (ContentXElement element, LevelGenerationParametersFile file)
 
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 void CheckValidity ()
 
static LevelGenerationParams GetRandom (string seed, LevelData.LevelType type, float difficulty, Identifier biomeId=default)
 
- Static Public Member Functions inherited from Barotrauma.Prefab
static void DisallowCallFromConstructor ()
 

Public Attributes

readonly ImmutableHashSet< IdentifierAllowedBiomeIdentifiers
 
readonly bool AnyBiomeAllowed
 
- Public Attributes inherited from Barotrauma.Prefab
readonly Identifier Identifier
 
readonly ContentFile ContentFile
 

Static Public Attributes

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

Properties

string Name [get]
 
Identifier OldIdentifier [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [get, set]
 
LevelData.LevelType Type [get, set]
 
float Commonness [get, set]
 
float MinLevelDifficulty [get, set]
 
float MaxLevelDifficulty [get, set]
 
Color AmbientLightColor [get, set]
 
Color BackgroundTextureColor [get, set]
 
Color BackgroundColor [get, set]
 
Color WallColor [get, set]
 
Color WaterParticleColor [get, set]
 
Vector2 StartPosition [get, set]
 
Vector2 EndPosition [get, set]
 
Vector2 ForceOutpostPosition [get, set]
 
bool CreateHoleNextToEnd [get, set]
 
bool CreateHoleToAbyss [get, set]
 
bool NoLevelGeometry [get, set]
 
int LevelObjectAmount [get, set]
 
int BackgroundCreatureAmount [get, set]
 
int MinWidth [get, set]
 
int MaxWidth [get, set]
 
int Height [get, set]
 
int InitialDepthMin [get, set]
 
int InitialDepthMax [get, set]
 
int MinTunnelRadius [get, set]
 
Point SideTunnelCount [get, set]
 
float SideTunnelVariance [get, set]
 
Point MinSideTunnelRadius [get, set]
 
Point VoronoiSiteInterval [get, set]
 
Point VoronoiSiteVariance [get, set]
 
int CellSubdivisionLength [get, set]
 
float CellRoundingAmount [get, set]
 
float CellIrregularity [get, set]
 
Point MainPathNodeIntervalRange [get, set]
 
float MainPathVariance [get, set]
 
int CaveCount [get, set]
 
int ItemCount [get, set]
 
Point ResourceIntervalRange [get, set]
 
Point CaveResourceIntervalRange [get, set]
 
Point ResourceClusterSizeRange [get, set]
 
float ResourceSpawnChance [get, set]
 
float CaveResourceSpawnChance [get, set]
 
int FloatingIceChunkCount [get, set]
 
int IslandCount [get, set]
 
int IceSpireCount [get, set]
 
int AbyssIslandCount [get, set]
 
Point AbyssIslandSizeMin [get, set]
 
Point AbyssIslandSizeMax [get, set]
 
float AbyssIslandCaveProbability [get, set]
 
int AbyssResourceClustersMin [get, set]
 
int AbyssResourceClustersMax [get, set]
 
int SeaFloorDepth [get, set]
 
int SeaFloorVariance [get, set]
 
int MountainCountMin [get, set]
 
int MountainCountMax [get, set]
 
int MountainHeightMin [get, set]
 
int MountainHeightMax [get, set]
 
int RuinCount [get, set]
 
int MinRuinCount [get, set]
 
int MaxRuinCount [get, set]
 
int MinWreckCount [get, set]
 
int MaxWreckCount [get, set]
 
int MinCorpseCount [get, set]
 
int MaxCorpseCount [get, set]
 
float ThalamusProbability [get, set]
 
float WreckHullFloodingChance [get, set]
 
float WreckFloodingHullMinWaterPercentage [get, set]
 
float WreckFloodingHullMaxWaterPercentage [get, set]
 
string ForceBeaconStation [get, set]
 
float BottomHoleProbability [get, set]
 
float WaterParticleScale [get]
 
Vector2 WaterParticleVelocity [get]
 
float WallTextureSize [get]
 
float WallEdgeTextureWidth [get]
 
Vector2 FlashInterval [get, set]
 
Color FlashColor [get, set]
 
bool PlayNoiseLoopInOutpostLevel [get, set]
 
float WaterAmbienceVolume [get, set]
 
float WallEdgeExpandOutwardsAmount [get]
 
float WallEdgeExpandInwardsAmount [get]
 
Sprite BackgroundSprite [get]
 
Sprite BackgroundTopSprite [get]
 
Sprite WallSprite [get]
 
Sprite WallEdgeSprite [get]
 
Sprite DestructibleWallSprite [get]
 
Sprite DestructibleWallEdgeSprite [get]
 
Sprite WallSpriteDestroyed [get]
 
Sprite WaterParticles [get]
 
Sounds.Sound FlashSound [get]
 
- Properties inherited from Barotrauma.PrefabWithUintIdentifier
UInt32 UintIdentifier [get, set]
 
- Properties inherited from Barotrauma.Prefab
ContentPackageContentPackage [get]
 
ContentPath FilePath [get]
 
- Properties inherited from Barotrauma.ISerializableEntity
string Name [get]
 
Dictionary< Identifier, SerializablePropertySerializableProperties [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 10 of file LevelGenerationParams.cs.

Constructor & Destructor Documentation

◆ LevelGenerationParams()

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

Definition at line 720 of file LevelGenerationParams.cs.

Member Function Documentation

◆ CheckValidity()

static void Barotrauma.LevelGenerationParams.CheckValidity ( )
static

Definition at line 640 of file LevelGenerationParams.cs.

◆ Dispose()

override void Barotrauma.LevelGenerationParams.Dispose ( )
virtual

Implements Barotrauma.Prefab.

Definition at line 769 of file LevelGenerationParams.cs.

◆ GetMaxRuinCount()

int Barotrauma.LevelGenerationParams.GetMaxRuinCount ( )

◆ GetRandom()

static LevelGenerationParams Barotrauma.LevelGenerationParams.GetRandom ( string  seed,
LevelData.LevelType  type,
float  difficulty,
Identifier  biomeId = default 
)
static

Definition at line 659 of file LevelGenerationParams.cs.

◆ UseRandomRuinCount()

bool Barotrauma.LevelGenerationParams.UseRandomRuinCount ( )

Member Data Documentation

◆ AllowedBiomeIdentifiers

readonly ImmutableHashSet<Identifier> Barotrauma.LevelGenerationParams.AllowedBiomeIdentifiers

Definition at line 54 of file LevelGenerationParams.cs.

◆ AnyBiomeAllowed

readonly bool Barotrauma.LevelGenerationParams.AnyBiomeAllowed

Definition at line 55 of file LevelGenerationParams.cs.

◆ LevelParams

readonly PrefabCollection<LevelGenerationParams> Barotrauma.LevelGenerationParams.LevelParams = new PrefabCollection<LevelGenerationParams>()
static

Definition at line 12 of file LevelGenerationParams.cs.

Property Documentation

◆ AbyssIslandCaveProbability

float Barotrauma.LevelGenerationParams.AbyssIslandCaveProbability
getset

Definition at line 431 of file LevelGenerationParams.cs.

◆ AbyssIslandCount

int Barotrauma.LevelGenerationParams.AbyssIslandCount
getset

Definition at line 410 of file LevelGenerationParams.cs.

◆ AbyssIslandSizeMax

Point Barotrauma.LevelGenerationParams.AbyssIslandSizeMax
getset

Definition at line 424 of file LevelGenerationParams.cs.

◆ AbyssIslandSizeMin

Point Barotrauma.LevelGenerationParams.AbyssIslandSizeMin
getset

Definition at line 417 of file LevelGenerationParams.cs.

◆ AbyssResourceClustersMax

int Barotrauma.LevelGenerationParams.AbyssResourceClustersMax
getset

Definition at line 445 of file LevelGenerationParams.cs.

◆ AbyssResourceClustersMin

int Barotrauma.LevelGenerationParams.AbyssResourceClustersMin
getset

Definition at line 438 of file LevelGenerationParams.cs.

◆ AmbientLightColor

Color Barotrauma.LevelGenerationParams.AmbientLightColor
getset

Definition at line 92 of file LevelGenerationParams.cs.

◆ BackgroundColor

Color Barotrauma.LevelGenerationParams.BackgroundColor
getset

Definition at line 106 of file LevelGenerationParams.cs.

◆ BackgroundCreatureAmount

int Barotrauma.LevelGenerationParams.BackgroundCreatureAmount
getset

Definition at line 194 of file LevelGenerationParams.cs.

◆ BackgroundSprite

Sprite Barotrauma.LevelGenerationParams.BackgroundSprite
get

Definition at line 626 of file LevelGenerationParams.cs.

◆ BackgroundTextureColor

Color Barotrauma.LevelGenerationParams.BackgroundTextureColor
getset

Definition at line 99 of file LevelGenerationParams.cs.

◆ BackgroundTopSprite

Sprite Barotrauma.LevelGenerationParams.BackgroundTopSprite
get

Definition at line 627 of file LevelGenerationParams.cs.

◆ BottomHoleProbability

float Barotrauma.LevelGenerationParams.BottomHoleProbability
getset

Definition at line 549 of file LevelGenerationParams.cs.

◆ CaveCount

int Barotrauma.LevelGenerationParams.CaveCount
getset

Definition at line 347 of file LevelGenerationParams.cs.

◆ CaveResourceIntervalRange

Point Barotrauma.LevelGenerationParams.CaveResourceIntervalRange
getset

Definition at line 368 of file LevelGenerationParams.cs.

◆ CaveResourceSpawnChance

float Barotrauma.LevelGenerationParams.CaveResourceSpawnChance
getset

Definition at line 386 of file LevelGenerationParams.cs.

◆ CellIrregularity

float Barotrauma.LevelGenerationParams.CellIrregularity
getset

Definition at line 317 of file LevelGenerationParams.cs.

◆ CellRoundingAmount

float Barotrauma.LevelGenerationParams.CellRoundingAmount
getset

Definition at line 306 of file LevelGenerationParams.cs.

◆ CellSubdivisionLength

int Barotrauma.LevelGenerationParams.CellSubdivisionLength
getset

Definition at line 294 of file LevelGenerationParams.cs.

◆ Commonness

float Barotrauma.LevelGenerationParams.Commonness
getset

Definition at line 71 of file LevelGenerationParams.cs.

◆ CreateHoleNextToEnd

bool Barotrauma.LevelGenerationParams.CreateHoleNextToEnd
getset

Definition at line 166 of file LevelGenerationParams.cs.

◆ CreateHoleToAbyss

bool Barotrauma.LevelGenerationParams.CreateHoleToAbyss
getset

Definition at line 173 of file LevelGenerationParams.cs.

◆ DestructibleWallEdgeSprite

Sprite Barotrauma.LevelGenerationParams.DestructibleWallEdgeSprite
get

Definition at line 631 of file LevelGenerationParams.cs.

◆ DestructibleWallSprite

Sprite Barotrauma.LevelGenerationParams.DestructibleWallSprite
get

Definition at line 630 of file LevelGenerationParams.cs.

◆ EndPosition

Vector2 Barotrauma.LevelGenerationParams.EndPosition
getset

Definition at line 141 of file LevelGenerationParams.cs.

◆ FlashColor

Color Barotrauma.LevelGenerationParams.FlashColor
getset

Definition at line 592 of file LevelGenerationParams.cs.

◆ FlashInterval

Vector2 Barotrauma.LevelGenerationParams.FlashInterval
getset

Definition at line 585 of file LevelGenerationParams.cs.

◆ FlashSound

Sounds.Sound Barotrauma.LevelGenerationParams.FlashSound
get

Definition at line 636 of file LevelGenerationParams.cs.

◆ FloatingIceChunkCount

int Barotrauma.LevelGenerationParams.FloatingIceChunkCount
getset

Definition at line 389 of file LevelGenerationParams.cs.

◆ ForceBeaconStation

string Barotrauma.LevelGenerationParams.ForceBeaconStation
getset

Definition at line 546 of file LevelGenerationParams.cs.

◆ ForceOutpostPosition

Vector2 Barotrauma.LevelGenerationParams.ForceOutpostPosition
getset

Definition at line 154 of file LevelGenerationParams.cs.

◆ Height

int Barotrauma.LevelGenerationParams.Height
getset

Definition at line 215 of file LevelGenerationParams.cs.

◆ IceSpireCount

int Barotrauma.LevelGenerationParams.IceSpireCount
getset

Definition at line 403 of file LevelGenerationParams.cs.

◆ InitialDepthMax

int Barotrauma.LevelGenerationParams.InitialDepthMax
getset

Definition at line 229 of file LevelGenerationParams.cs.

◆ InitialDepthMin

int Barotrauma.LevelGenerationParams.InitialDepthMin
getset

Definition at line 222 of file LevelGenerationParams.cs.

◆ IslandCount

int Barotrauma.LevelGenerationParams.IslandCount
getset

Definition at line 396 of file LevelGenerationParams.cs.

◆ ItemCount

int Barotrauma.LevelGenerationParams.ItemCount
getset

Definition at line 354 of file LevelGenerationParams.cs.

◆ LevelObjectAmount

int Barotrauma.LevelGenerationParams.LevelObjectAmount
getset

Definition at line 187 of file LevelGenerationParams.cs.

◆ MainPathNodeIntervalRange

Point Barotrauma.LevelGenerationParams.MainPathNodeIntervalRange
getset

Definition at line 329 of file LevelGenerationParams.cs.

◆ MainPathVariance

float Barotrauma.LevelGenerationParams.MainPathVariance
getset

Definition at line 340 of file LevelGenerationParams.cs.

◆ MaxCorpseCount

int Barotrauma.LevelGenerationParams.MaxCorpseCount
getset

Definition at line 530 of file LevelGenerationParams.cs.

◆ MaxLevelDifficulty

float Barotrauma.LevelGenerationParams.MaxLevelDifficulty
getset

Definition at line 85 of file LevelGenerationParams.cs.

◆ MaxRuinCount

int Barotrauma.LevelGenerationParams.MaxRuinCount
getset

Definition at line 516 of file LevelGenerationParams.cs.

◆ MaxWidth

int Barotrauma.LevelGenerationParams.MaxWidth
getset

Definition at line 208 of file LevelGenerationParams.cs.

◆ MaxWreckCount

int Barotrauma.LevelGenerationParams.MaxWreckCount
getset

Definition at line 524 of file LevelGenerationParams.cs.

◆ MinCorpseCount

int Barotrauma.LevelGenerationParams.MinCorpseCount
getset

Definition at line 527 of file LevelGenerationParams.cs.

◆ MinLevelDifficulty

float Barotrauma.LevelGenerationParams.MinLevelDifficulty
getset

Definition at line 78 of file LevelGenerationParams.cs.

◆ MinRuinCount

int Barotrauma.LevelGenerationParams.MinRuinCount
getset

Definition at line 513 of file LevelGenerationParams.cs.

◆ MinSideTunnelRadius

Point Barotrauma.LevelGenerationParams.MinSideTunnelRadius
getset

Definition at line 259 of file LevelGenerationParams.cs.

◆ MinTunnelRadius

int Barotrauma.LevelGenerationParams.MinTunnelRadius
getset

Definition at line 236 of file LevelGenerationParams.cs.

◆ MinWidth

int Barotrauma.LevelGenerationParams.MinWidth
getset

Definition at line 201 of file LevelGenerationParams.cs.

◆ MinWreckCount

int Barotrauma.LevelGenerationParams.MinWreckCount
getset

Definition at line 521 of file LevelGenerationParams.cs.

◆ MountainCountMax

int Barotrauma.LevelGenerationParams.MountainCountMax
getset

Definition at line 476 of file LevelGenerationParams.cs.

◆ MountainCountMin

int Barotrauma.LevelGenerationParams.MountainCountMin
getset

Definition at line 466 of file LevelGenerationParams.cs.

◆ MountainHeightMax

int Barotrauma.LevelGenerationParams.MountainHeightMax
getset

Definition at line 496 of file LevelGenerationParams.cs.

◆ MountainHeightMin

int Barotrauma.LevelGenerationParams.MountainHeightMin
getset

Definition at line 486 of file LevelGenerationParams.cs.

◆ Name

string Barotrauma.LevelGenerationParams.Name
get

Definition at line 14 of file LevelGenerationParams.cs.

◆ NoLevelGeometry

bool Barotrauma.LevelGenerationParams.NoLevelGeometry
getset

Definition at line 180 of file LevelGenerationParams.cs.

◆ OldIdentifier

Identifier Barotrauma.LevelGenerationParams.OldIdentifier
get

Definition at line 16 of file LevelGenerationParams.cs.

◆ PlayNoiseLoopInOutpostLevel

bool Barotrauma.LevelGenerationParams.PlayNoiseLoopInOutpostLevel
getset

Definition at line 599 of file LevelGenerationParams.cs.

◆ ResourceClusterSizeRange

Point Barotrauma.LevelGenerationParams.ResourceClusterSizeRange
getset

Definition at line 376 of file LevelGenerationParams.cs.

◆ ResourceIntervalRange

Point Barotrauma.LevelGenerationParams.ResourceIntervalRange
getset

Definition at line 361 of file LevelGenerationParams.cs.

◆ ResourceSpawnChance

float Barotrauma.LevelGenerationParams.ResourceSpawnChance
getset

Definition at line 383 of file LevelGenerationParams.cs.

◆ RuinCount

int Barotrauma.LevelGenerationParams.RuinCount
getset

Definition at line 510 of file LevelGenerationParams.cs.

◆ SeaFloorDepth

int Barotrauma.LevelGenerationParams.SeaFloorDepth
getset

Definition at line 452 of file LevelGenerationParams.cs.

◆ SeaFloorVariance

int Barotrauma.LevelGenerationParams.SeaFloorVariance
getset

Definition at line 459 of file LevelGenerationParams.cs.

◆ SerializableProperties

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

Definition at line 57 of file LevelGenerationParams.cs.

◆ SideTunnelCount

Point Barotrauma.LevelGenerationParams.SideTunnelCount
getset

Definition at line 244 of file LevelGenerationParams.cs.

◆ SideTunnelVariance

float Barotrauma.LevelGenerationParams.SideTunnelVariance
getset

Definition at line 252 of file LevelGenerationParams.cs.

◆ StartPosition

Vector2 Barotrauma.LevelGenerationParams.StartPosition
getset

Definition at line 128 of file LevelGenerationParams.cs.

◆ ThalamusProbability

float Barotrauma.LevelGenerationParams.ThalamusProbability
getset

Definition at line 533 of file LevelGenerationParams.cs.

◆ Type

LevelData.LevelType Barotrauma.LevelGenerationParams.Type
getset

Definition at line 64 of file LevelGenerationParams.cs.

◆ VoronoiSiteInterval

Point Barotrauma.LevelGenerationParams.VoronoiSiteInterval
getset

Definition at line 268 of file LevelGenerationParams.cs.

◆ VoronoiSiteVariance

Point Barotrauma.LevelGenerationParams.VoronoiSiteVariance
getset

Definition at line 280 of file LevelGenerationParams.cs.

◆ WallColor

Color Barotrauma.LevelGenerationParams.WallColor
getset

Definition at line 113 of file LevelGenerationParams.cs.

◆ WallEdgeExpandInwardsAmount

float Barotrauma.LevelGenerationParams.WallEdgeExpandInwardsAmount
get

Definition at line 620 of file LevelGenerationParams.cs.

◆ WallEdgeExpandOutwardsAmount

float Barotrauma.LevelGenerationParams.WallEdgeExpandOutwardsAmount
get

Definition at line 613 of file LevelGenerationParams.cs.

◆ WallEdgeSprite

Sprite Barotrauma.LevelGenerationParams.WallEdgeSprite
get

Definition at line 629 of file LevelGenerationParams.cs.

◆ WallEdgeTextureWidth

float Barotrauma.LevelGenerationParams.WallEdgeTextureWidth
get

Definition at line 578 of file LevelGenerationParams.cs.

◆ WallSprite

Sprite Barotrauma.LevelGenerationParams.WallSprite
get

Definition at line 628 of file LevelGenerationParams.cs.

◆ WallSpriteDestroyed

Sprite Barotrauma.LevelGenerationParams.WallSpriteDestroyed
get

Definition at line 632 of file LevelGenerationParams.cs.

◆ WallTextureSize

float Barotrauma.LevelGenerationParams.WallTextureSize
get

Definition at line 571 of file LevelGenerationParams.cs.

◆ WaterAmbienceVolume

float Barotrauma.LevelGenerationParams.WaterAmbienceVolume
getset

Definition at line 606 of file LevelGenerationParams.cs.

◆ WaterParticleColor

Color Barotrauma.LevelGenerationParams.WaterParticleColor
getset

Definition at line 120 of file LevelGenerationParams.cs.

◆ WaterParticles

Sprite Barotrauma.LevelGenerationParams.WaterParticles
get

Definition at line 633 of file LevelGenerationParams.cs.

◆ WaterParticleScale

float Barotrauma.LevelGenerationParams.WaterParticleScale
get

Definition at line 556 of file LevelGenerationParams.cs.

◆ WaterParticleVelocity

Vector2 Barotrauma.LevelGenerationParams.WaterParticleVelocity
get

Definition at line 564 of file LevelGenerationParams.cs.

◆ WreckFloodingHullMaxWaterPercentage

float Barotrauma.LevelGenerationParams.WreckFloodingHullMaxWaterPercentage
getset

Definition at line 542 of file LevelGenerationParams.cs.

◆ WreckFloodingHullMinWaterPercentage

float Barotrauma.LevelGenerationParams.WreckFloodingHullMinWaterPercentage
getset

Definition at line 539 of file LevelGenerationParams.cs.

◆ WreckHullFloodingChance

float Barotrauma.LevelGenerationParams.WreckHullFloodingChance
getset

Definition at line 536 of file LevelGenerationParams.cs.