Barotrauma Client Doc
Barotrauma.Decal Class Reference

Public Member Functions

 Decal (DecalPrefab prefab, float scale, Vector2 worldPosition, Hull hull, int? spriteIndex=null)
 
void Update (float deltaTime)
 
void ForceRefreshFadeTimer (float val)
 
void StopFadeIn ()
 
bool AffectsSection (BackgroundSection section)
 
void Clean (float val)
 
void Draw (SpriteBatch spriteBatch, Hull hull, float depth)
 

Public Attributes

readonly DecalPrefab Prefab
 
readonly Sprite Sprite
 
readonly float Scale
 

Properties

float FadeTimer [get, set]
 
float FadeInTime [get]
 
float FadeOutTime [get]
 
float LifeTime [get]
 
float BaseAlpha = 1.0f [get, set]
 
Color Color [get, set]
 
Vector2 WorldPosition [get]
 
Vector2 CenterPosition [get]
 
Vector2 NonClampedPosition [get]
 
int SpriteIndex [get]
 

Detailed Description

Definition at line 7 of file BarotraumaShared/SharedSource/Decals/Decal.cs.

Constructor & Destructor Documentation

◆ Decal()

Barotrauma.Decal.Decal ( DecalPrefab  prefab,
float  scale,
Vector2  worldPosition,
Hull  hull,
int?  spriteIndex = null 
)

Member Function Documentation

◆ AffectsSection()

bool Barotrauma.Decal.AffectsSection ( BackgroundSection  section)

◆ Clean()

void Barotrauma.Decal.Clean ( float  val)

◆ Draw()

void Barotrauma.Decal.Draw ( SpriteBatch  spriteBatch,
Hull  hull,
float  depth 
)

◆ ForceRefreshFadeTimer()

void Barotrauma.Decal.ForceRefreshFadeTimer ( float  val)

◆ StopFadeIn()

void Barotrauma.Decal.StopFadeIn ( )

◆ Update()

void Barotrauma.Decal.Update ( float  deltaTime)

Member Data Documentation

◆ Prefab

readonly DecalPrefab Barotrauma.Decal.Prefab

Definition at line 9 of file BarotraumaShared/SharedSource/Decals/Decal.cs.

◆ Scale

readonly float Barotrauma.Decal.Scale

◆ Sprite

readonly Sprite Barotrauma.Decal.Sprite

Property Documentation

◆ BaseAlpha

float Barotrauma.Decal.BaseAlpha = 1.0f
getset

◆ CenterPosition

Vector2 Barotrauma.Decal.CenterPosition
get

◆ Color

Color Barotrauma.Decal.Color
getset

◆ FadeInTime

float Barotrauma.Decal.FadeInTime
get

◆ FadeOutTime

float Barotrauma.Decal.FadeOutTime
get

◆ FadeTimer

float Barotrauma.Decal.FadeTimer
getset

◆ LifeTime

float Barotrauma.Decal.LifeTime
get

◆ NonClampedPosition

Vector2 Barotrauma.Decal.NonClampedPosition
get

◆ SpriteIndex

int Barotrauma.Decal.SpriteIndex
get

◆ WorldPosition

Vector2 Barotrauma.Decal.WorldPosition
get