Barotrauma Client Doc
Barotrauma.Particles.Particle Class Reference

Public Types

enum class  UpdateResult { Normal , Delete }
 

Public Member Functions

delegate void OnChangeHullHandler (Vector2 position, Hull currentHull)
 
override string ToString ()
 
void Init (ParticlePrefab prefab, Vector2 position, Vector2 speed, float rotation, Hull hullGuess=null, bool drawOnTop=false, float collisionIgnoreTimer=0f, float lifeTimeMultiplier=1f, Tuple< Vector2, Vector2 > tracerPoints=null)
 
UpdateResult Update (float deltaTime)
 
void UpdateDrawPos ()
 
void Draw (SpriteBatch spriteBatch)
 

Public Attributes

OnChangeHullHandler OnChangeHull
 
OnChangeHullHandler OnCollision
 
bool HighQualityCollisionDetection
 
Vector4 ColorMultiplier
 

Properties

bool DrawOnTop [get]
 
ParticlePrefab.DrawTargetType DrawTarget [get]
 
ParticleBlendState BlendState [get]
 
float StartDelay [get, set]
 
Vector2 Size [get, set]
 
Hull CurrentHull [get]
 
ParticlePrefab Prefab [get]
 

Detailed Description

Definition at line 10 of file Particle.cs.

Member Enumeration Documentation

◆ UpdateResult

Enumerator
Normal 
Delete 

Definition at line 209 of file Particle.cs.

Member Function Documentation

◆ Draw()

void Barotrauma.Particles.Particle.Draw ( SpriteBatch  spriteBatch)

Definition at line 571 of file Particle.cs.

◆ Init()

void Barotrauma.Particles.Particle.Init ( ParticlePrefab  prefab,
Vector2  position,
Vector2  speed,
float  rotation,
Hull  hullGuess = null,
bool  drawOnTop = false,
float  collisionIgnoreTimer = 0f,
float  lifeTimeMultiplier = 1f,
Tuple< Vector2, Vector2 >  tracerPoints = null 
)

Definition at line 111 of file Particle.cs.

◆ OnChangeHullHandler()

delegate void Barotrauma.Particles.Particle.OnChangeHullHandler ( Vector2  position,
Hull  currentHull 
)

◆ ToString()

override string Barotrauma.Particles.Particle.ToString ( )

Definition at line 107 of file Particle.cs.

◆ Update()

UpdateResult Barotrauma.Particles.Particle.Update ( float  deltaTime)

Definition at line 215 of file Particle.cs.

◆ UpdateDrawPos()

void Barotrauma.Particles.Particle.UpdateDrawPos ( )

Definition at line 565 of file Particle.cs.

Member Data Documentation

◆ ColorMultiplier

Vector4 Barotrauma.Particles.Particle.ColorMultiplier

Definition at line 71 of file Particle.cs.

◆ HighQualityCollisionDetection

bool Barotrauma.Particles.Particle.HighQualityCollisionDetection

Definition at line 69 of file Particle.cs.

◆ OnChangeHull

OnChangeHullHandler Barotrauma.Particles.Particle.OnChangeHull

Definition at line 17 of file Particle.cs.

◆ OnCollision

OnChangeHullHandler Barotrauma.Particles.Particle.OnCollision

Definition at line 19 of file Particle.cs.

Property Documentation

◆ BlendState

ParticleBlendState Barotrauma.Particles.Particle.BlendState
get

Definition at line 80 of file Particle.cs.

◆ CurrentHull

Hull Barotrauma.Particles.Particle.CurrentHull
get

Definition at line 97 of file Particle.cs.

◆ DrawOnTop

bool Barotrauma.Particles.Particle.DrawOnTop
get

Definition at line 73 of file Particle.cs.

◆ DrawTarget

ParticlePrefab.DrawTargetType Barotrauma.Particles.Particle.DrawTarget
get

Definition at line 75 of file Particle.cs.

◆ Prefab

ParticlePrefab Barotrauma.Particles.Particle.Prefab
get

Definition at line 102 of file Particle.cs.

◆ Size

Vector2 Barotrauma.Particles.Particle.Size
getset

Definition at line 91 of file Particle.cs.

◆ StartDelay

float Barotrauma.Particles.Particle.StartDelay
getset

Definition at line 85 of file Particle.cs.