Barotrauma Client Doc
Barotrauma.BackgroundCreaturePrefab Class Reference

Public Member Functions

 BackgroundCreaturePrefab (ContentXElement element)
 
float GetCommonness (LevelGenerationParams generationParams)
 

Public Attributes

readonly Sprite Sprite
 
readonly DeformableSprite DeformableSprite
 
readonly string Name
 
readonly XElement Config
 
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. More...
 

Properties

float Speed [get]
 
float WanderAmount [get]
 
float WanderZAmount [get]
 
int SwarmMin [get]
 
int SwarmMax [get]
 
float SwarmRadius [get]
 
float SwarmCohesion [get]
 
float MinDepth [get]
 
float MaxDepth [get]
 
bool DisableRotation [get]
 
bool DisableFlipping [get]
 
float Scale [get]
 
float Commonness [get]
 
int MaxCount [get]
 
float FlashInterval [get]
 
float FlashDuration [get]
 

Detailed Description

Definition at line 6 of file BackgroundCreaturePrefab.cs.

Constructor & Destructor Documentation

◆ BackgroundCreaturePrefab()

Barotrauma.BackgroundCreaturePrefab.BackgroundCreaturePrefab ( ContentXElement  element)

Definition at line 70 of file BackgroundCreaturePrefab.cs.

Member Function Documentation

◆ GetCommonness()

float Barotrauma.BackgroundCreaturePrefab.GetCommonness ( LevelGenerationParams  generationParams)

Definition at line 105 of file BackgroundCreaturePrefab.cs.

Member Data Documentation

◆ Config

readonly XElement Barotrauma.BackgroundCreaturePrefab.Config

Definition at line 13 of file BackgroundCreaturePrefab.cs.

◆ DeformableSprite

readonly DeformableSprite Barotrauma.BackgroundCreaturePrefab.DeformableSprite

Definition at line 9 of file BackgroundCreaturePrefab.cs.

◆ Name

readonly string Barotrauma.BackgroundCreaturePrefab.Name

Definition at line 11 of file BackgroundCreaturePrefab.cs.

◆ OverrideCommonness

Dictionary<Identifier, float> Barotrauma.BackgroundCreaturePrefab.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.

Definition at line 68 of file BackgroundCreaturePrefab.cs.

◆ Sprite

readonly Sprite Barotrauma.BackgroundCreaturePrefab.Sprite

Definition at line 8 of file BackgroundCreaturePrefab.cs.

Property Documentation

◆ Commonness

float Barotrauma.BackgroundCreaturePrefab.Commonness
get

Definition at line 52 of file BackgroundCreaturePrefab.cs.

◆ DisableFlipping

bool Barotrauma.BackgroundCreaturePrefab.DisableFlipping
get

Definition at line 46 of file BackgroundCreaturePrefab.cs.

◆ DisableRotation

bool Barotrauma.BackgroundCreaturePrefab.DisableRotation
get

Definition at line 43 of file BackgroundCreaturePrefab.cs.

◆ FlashDuration

float Barotrauma.BackgroundCreaturePrefab.FlashDuration
get

Definition at line 61 of file BackgroundCreaturePrefab.cs.

◆ FlashInterval

float Barotrauma.BackgroundCreaturePrefab.FlashInterval
get

Definition at line 58 of file BackgroundCreaturePrefab.cs.

◆ MaxCount

int Barotrauma.BackgroundCreaturePrefab.MaxCount
get

Definition at line 55 of file BackgroundCreaturePrefab.cs.

◆ MaxDepth

float Barotrauma.BackgroundCreaturePrefab.MaxDepth
get

Definition at line 40 of file BackgroundCreaturePrefab.cs.

◆ MinDepth

float Barotrauma.BackgroundCreaturePrefab.MinDepth
get

Definition at line 37 of file BackgroundCreaturePrefab.cs.

◆ Scale

float Barotrauma.BackgroundCreaturePrefab.Scale
get

Definition at line 49 of file BackgroundCreaturePrefab.cs.

◆ Speed

float Barotrauma.BackgroundCreaturePrefab.Speed
get

Definition at line 16 of file BackgroundCreaturePrefab.cs.

◆ SwarmCohesion

float Barotrauma.BackgroundCreaturePrefab.SwarmCohesion
get

Definition at line 34 of file BackgroundCreaturePrefab.cs.

◆ SwarmMax

int Barotrauma.BackgroundCreaturePrefab.SwarmMax
get

Definition at line 28 of file BackgroundCreaturePrefab.cs.

◆ SwarmMin

int Barotrauma.BackgroundCreaturePrefab.SwarmMin
get

Definition at line 25 of file BackgroundCreaturePrefab.cs.

◆ SwarmRadius

float Barotrauma.BackgroundCreaturePrefab.SwarmRadius
get

Definition at line 31 of file BackgroundCreaturePrefab.cs.

◆ WanderAmount

float Barotrauma.BackgroundCreaturePrefab.WanderAmount
get

Definition at line 19 of file BackgroundCreaturePrefab.cs.

◆ WanderZAmount

float Barotrauma.BackgroundCreaturePrefab.WanderZAmount
get

Definition at line 22 of file BackgroundCreaturePrefab.cs.