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

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]
 

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)

◆ 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

◆ 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

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