Barotrauma Client Doc
Barotrauma.Particles.ParticleEmitter Class Reference

Public Member Functions

 ParticleEmitter (ContentXElement element)
 
 ParticleEmitter (ParticleEmitterPrefab prefab)
 
void Emit (float deltaTime, Vector2 position, Hull? hullGuess=null, float angle=0.0f, float particleRotation=0.0f, float velocityMultiplier=1.0f, float sizeMultiplier=1.0f, float amountMultiplier=1.0f, Color? colorMultiplier=null, ParticlePrefab? overrideParticle=null, bool mirrorAngle=false, Tuple< Vector2, Vector2 >? tracerPoints=null)
 
Rectangle CalculateParticleBounds (Vector2 startPosition)
 

Public Attributes

readonly ParticleEmitterPrefab Prefab
 

Detailed Description

Definition at line 133 of file ParticleEmitter.cs.

Constructor & Destructor Documentation

◆ ParticleEmitter() [1/2]

Barotrauma.Particles.ParticleEmitter.ParticleEmitter ( ContentXElement  element)

Definition at line 141 of file ParticleEmitter.cs.

◆ ParticleEmitter() [2/2]

Barotrauma.Particles.ParticleEmitter.ParticleEmitter ( ParticleEmitterPrefab  prefab)

Definition at line 146 of file ParticleEmitter.cs.

Member Function Documentation

◆ CalculateParticleBounds()

Rectangle Barotrauma.Particles.ParticleEmitter.CalculateParticleBounds ( Vector2  startPosition)

Definition at line 236 of file ParticleEmitter.cs.

◆ Emit()

void Barotrauma.Particles.ParticleEmitter.Emit ( float  deltaTime,
Vector2  position,
Hull hullGuess = null,
float  angle = 0.0f,
float  particleRotation = 0.0f,
float  velocityMultiplier = 1.0f,
float  sizeMultiplier = 1.0f,
float  amountMultiplier = 1.0f,
Color?  colorMultiplier = null,
ParticlePrefab overrideParticle = null,
bool  mirrorAngle = false,
Tuple< Vector2, Vector2 >?  tracerPoints = null 
)

Definition at line 152 of file ParticleEmitter.cs.

Member Data Documentation

◆ Prefab

readonly ParticleEmitterPrefab Barotrauma.Particles.ParticleEmitter.Prefab

Definition at line 139 of file ParticleEmitter.cs.