Barotrauma Server
Loading...
Searching...
No Matches
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)
 
void Dispose ()
 

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]
 
Vector2 StartPosition [get, set]
 
Vector2 EndPosition [get, set]
 
Vector2 ForceOutpostPosition [get, set]
 
bool CreateHoleNextToEnd [get, set]
 
float BottomHoleProbability [get, set]
 
int MinWidth [get, set]
 
int MaxWidth [get, set]
 
int Height [get, set]
 
int InitialDepthMin [get, set]
 
int InitialDepthMax [get, set]
 
bool NoLevelGeometry [get, set]
 
Point VoronoiSiteInterval [get, set]
 
Point VoronoiSiteVariance [get, set]
 
int CellSubdivisionLength [get, set]
 
float CellRoundingAmount [get, set]
 
float CellIrregularity [get, set]
 
int MinTunnelRadius [get, set]
 
Point SideTunnelCount [get, set]
 
float SideTunnelVariance [get, set]
 
Point MinSideTunnelRadius [get, set]
 
Point MainPathNodeIntervalRange [get, set]
 
float MainPathVariance [get, set]
 
int LevelObjectAmount [get, set]
 
int BackgroundCreatureAmount [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]
 
bool CreateHoleToAbyss [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 WaterParticleScale [get]
 
Vector2 WaterParticleVelocity [get]
 
float WallTextureSize [get]
 
float WallEdgeTextureWidth [get]
 
Vector2 FlashInterval [get, set]
 
Color FlashColor [get, set]
 
float WallEdgeExpandOutwardsAmount [get]
 
float WallEdgeExpandInwardsAmount [get]
 
Color AmbientLightColor [get, set]
 
Color BackgroundTextureColor [get, set]
 
Color BackgroundColor [get, set]
 
Color WallColor [get, set]
 
Color WaterParticleColor [get, set]
 
bool PlayNoiseLoopInOutpostLevel [get, set]
 
float WaterAmbienceVolume [get, set]
 
Sprite BackgroundSprite [get]
 
Sprite BackgroundTopSprite [get]
 
Sprite WallSprite [get]
 
Sprite WallEdgeSprite [get]
 
Sprite DestructibleWallSprite [get]
 
Sprite DestructibleWallEdgeSprite [get]
 
Sprite WallSpriteDestroyed [get]
 
Sprite WaterParticles [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

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

◆ LevelGenerationParams()

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

Member Function Documentation

◆ CheckValidity()

static void Barotrauma.LevelGenerationParams.CheckValidity ( )
static

◆ Dispose()

override void Barotrauma.LevelGenerationParams.Dispose ( )

◆ GetMaxRuinCount()

int Barotrauma.LevelGenerationParams.GetMaxRuinCount ( )

◆ GetRandom()

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

◆ UseRandomRuinCount()

bool Barotrauma.LevelGenerationParams.UseRandomRuinCount ( )

Member Data Documentation

◆ AllowedBiomeIdentifiers

readonly ImmutableHashSet<Identifier> Barotrauma.LevelGenerationParams.AllowedBiomeIdentifiers

◆ AnyBiomeAllowed

readonly bool Barotrauma.LevelGenerationParams.AnyBiomeAllowed

◆ LevelParams

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

Property Documentation

◆ AbyssIslandCaveProbability

float Barotrauma.LevelGenerationParams.AbyssIslandCaveProbability
getset

◆ AbyssIslandCount

int Barotrauma.LevelGenerationParams.AbyssIslandCount
getset

◆ AbyssIslandSizeMax

Point Barotrauma.LevelGenerationParams.AbyssIslandSizeMax
getset

◆ AbyssIslandSizeMin

Point Barotrauma.LevelGenerationParams.AbyssIslandSizeMin
getset

◆ AbyssResourceClustersMax

int Barotrauma.LevelGenerationParams.AbyssResourceClustersMax
getset

◆ AbyssResourceClustersMin

int Barotrauma.LevelGenerationParams.AbyssResourceClustersMin
getset

◆ AmbientLightColor

Color Barotrauma.LevelGenerationParams.AmbientLightColor
getset

◆ BackgroundColor

Color Barotrauma.LevelGenerationParams.BackgroundColor
getset

◆ BackgroundCreatureAmount

int Barotrauma.LevelGenerationParams.BackgroundCreatureAmount
getset

◆ BackgroundSprite

Sprite Barotrauma.LevelGenerationParams.BackgroundSprite
get

◆ BackgroundTextureColor

Color Barotrauma.LevelGenerationParams.BackgroundTextureColor
getset

◆ BackgroundTopSprite

Sprite Barotrauma.LevelGenerationParams.BackgroundTopSprite
get

◆ BottomHoleProbability

float Barotrauma.LevelGenerationParams.BottomHoleProbability
getset

◆ CaveCount

int Barotrauma.LevelGenerationParams.CaveCount
getset

◆ CaveResourceIntervalRange

Point Barotrauma.LevelGenerationParams.CaveResourceIntervalRange
getset

◆ CaveResourceSpawnChance

float Barotrauma.LevelGenerationParams.CaveResourceSpawnChance
getset

◆ CellIrregularity

float Barotrauma.LevelGenerationParams.CellIrregularity
getset

◆ CellRoundingAmount

float Barotrauma.LevelGenerationParams.CellRoundingAmount
getset

◆ CellSubdivisionLength

int Barotrauma.LevelGenerationParams.CellSubdivisionLength
getset

◆ Commonness

float Barotrauma.LevelGenerationParams.Commonness
getset

◆ CreateHoleNextToEnd

bool Barotrauma.LevelGenerationParams.CreateHoleNextToEnd
getset

◆ CreateHoleToAbyss

bool Barotrauma.LevelGenerationParams.CreateHoleToAbyss
getset

◆ DestructibleWallEdgeSprite

Sprite Barotrauma.LevelGenerationParams.DestructibleWallEdgeSprite
get

◆ DestructibleWallSprite

Sprite Barotrauma.LevelGenerationParams.DestructibleWallSprite
get

◆ EndPosition

Vector2 Barotrauma.LevelGenerationParams.EndPosition
getset

◆ FlashColor

Color Barotrauma.LevelGenerationParams.FlashColor
getset

◆ FlashInterval

Vector2 Barotrauma.LevelGenerationParams.FlashInterval
getset

◆ FloatingIceChunkCount

int Barotrauma.LevelGenerationParams.FloatingIceChunkCount
getset

◆ ForceBeaconStation

string Barotrauma.LevelGenerationParams.ForceBeaconStation
getset

◆ ForceOutpostPosition

Vector2 Barotrauma.LevelGenerationParams.ForceOutpostPosition
getset

◆ Height

int Barotrauma.LevelGenerationParams.Height
getset

◆ IceSpireCount

int Barotrauma.LevelGenerationParams.IceSpireCount
getset

◆ InitialDepthMax

int Barotrauma.LevelGenerationParams.InitialDepthMax
getset

◆ InitialDepthMin

int Barotrauma.LevelGenerationParams.InitialDepthMin
getset

◆ IslandCount

int Barotrauma.LevelGenerationParams.IslandCount
getset

◆ ItemCount

int Barotrauma.LevelGenerationParams.ItemCount
getset

◆ LevelObjectAmount

int Barotrauma.LevelGenerationParams.LevelObjectAmount
getset

◆ MainPathNodeIntervalRange

Point Barotrauma.LevelGenerationParams.MainPathNodeIntervalRange
getset

◆ MainPathVariance

float Barotrauma.LevelGenerationParams.MainPathVariance
getset

◆ MaxCorpseCount

int Barotrauma.LevelGenerationParams.MaxCorpseCount
getset

◆ MaxLevelDifficulty

float Barotrauma.LevelGenerationParams.MaxLevelDifficulty
getset

◆ MaxRuinCount

int Barotrauma.LevelGenerationParams.MaxRuinCount
getset

◆ MaxWidth

int Barotrauma.LevelGenerationParams.MaxWidth
getset

◆ MaxWreckCount

int Barotrauma.LevelGenerationParams.MaxWreckCount
getset

◆ MinCorpseCount

int Barotrauma.LevelGenerationParams.MinCorpseCount
getset

◆ MinLevelDifficulty

float Barotrauma.LevelGenerationParams.MinLevelDifficulty
getset

◆ MinRuinCount

int Barotrauma.LevelGenerationParams.MinRuinCount
getset

◆ MinSideTunnelRadius

Point Barotrauma.LevelGenerationParams.MinSideTunnelRadius
getset

◆ MinTunnelRadius

int Barotrauma.LevelGenerationParams.MinTunnelRadius
getset

◆ MinWidth

int Barotrauma.LevelGenerationParams.MinWidth
getset

◆ MinWreckCount

int Barotrauma.LevelGenerationParams.MinWreckCount
getset

◆ MountainCountMax

int Barotrauma.LevelGenerationParams.MountainCountMax
getset

◆ MountainCountMin

int Barotrauma.LevelGenerationParams.MountainCountMin
getset

◆ MountainHeightMax

int Barotrauma.LevelGenerationParams.MountainHeightMax
getset

◆ MountainHeightMin

int Barotrauma.LevelGenerationParams.MountainHeightMin
getset

◆ Name

string Barotrauma.LevelGenerationParams.Name
get

◆ NoLevelGeometry

bool Barotrauma.LevelGenerationParams.NoLevelGeometry
getset

◆ OldIdentifier

Identifier Barotrauma.LevelGenerationParams.OldIdentifier
get

◆ PlayNoiseLoopInOutpostLevel

bool Barotrauma.LevelGenerationParams.PlayNoiseLoopInOutpostLevel
getset

◆ ResourceClusterSizeRange

Point Barotrauma.LevelGenerationParams.ResourceClusterSizeRange
getset

◆ ResourceIntervalRange

Point Barotrauma.LevelGenerationParams.ResourceIntervalRange
getset

◆ ResourceSpawnChance

float Barotrauma.LevelGenerationParams.ResourceSpawnChance
getset

◆ RuinCount

int Barotrauma.LevelGenerationParams.RuinCount
getset

◆ SeaFloorDepth

int Barotrauma.LevelGenerationParams.SeaFloorDepth
getset

◆ SeaFloorVariance

int Barotrauma.LevelGenerationParams.SeaFloorVariance
getset

◆ SerializableProperties

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

◆ SideTunnelCount

Point Barotrauma.LevelGenerationParams.SideTunnelCount
getset

◆ SideTunnelVariance

float Barotrauma.LevelGenerationParams.SideTunnelVariance
getset

◆ StartPosition

Vector2 Barotrauma.LevelGenerationParams.StartPosition
getset

◆ ThalamusProbability

float Barotrauma.LevelGenerationParams.ThalamusProbability
getset

◆ Type

LevelData.LevelType Barotrauma.LevelGenerationParams.Type
getset

◆ VoronoiSiteInterval

Point Barotrauma.LevelGenerationParams.VoronoiSiteInterval
getset

◆ VoronoiSiteVariance

Point Barotrauma.LevelGenerationParams.VoronoiSiteVariance
getset

◆ WallColor

Color Barotrauma.LevelGenerationParams.WallColor
getset

◆ WallEdgeExpandInwardsAmount

float Barotrauma.LevelGenerationParams.WallEdgeExpandInwardsAmount
get

◆ WallEdgeExpandOutwardsAmount

float Barotrauma.LevelGenerationParams.WallEdgeExpandOutwardsAmount
get

◆ WallEdgeSprite

Sprite Barotrauma.LevelGenerationParams.WallEdgeSprite
get

◆ WallEdgeTextureWidth

float Barotrauma.LevelGenerationParams.WallEdgeTextureWidth
get

◆ WallSprite

Sprite Barotrauma.LevelGenerationParams.WallSprite
get

◆ WallSpriteDestroyed

Sprite Barotrauma.LevelGenerationParams.WallSpriteDestroyed
get

◆ WallTextureSize

float Barotrauma.LevelGenerationParams.WallTextureSize
get

◆ WaterAmbienceVolume

float Barotrauma.LevelGenerationParams.WaterAmbienceVolume
getset

◆ WaterParticleColor

Color Barotrauma.LevelGenerationParams.WaterParticleColor
getset

◆ WaterParticles

Sprite Barotrauma.LevelGenerationParams.WaterParticles
get

◆ WaterParticleScale

float Barotrauma.LevelGenerationParams.WaterParticleScale
get

◆ WaterParticleVelocity

Vector2 Barotrauma.LevelGenerationParams.WaterParticleVelocity
get

◆ WreckFloodingHullMaxWaterPercentage

float Barotrauma.LevelGenerationParams.WreckFloodingHullMaxWaterPercentage
getset

◆ WreckFloodingHullMinWaterPercentage

float Barotrauma.LevelGenerationParams.WreckFloodingHullMinWaterPercentage
getset

◆ WreckHullFloodingChance

float Barotrauma.LevelGenerationParams.WreckHullFloodingChance
getset

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