|
| ParticleManager (Camera cam) |
|
Particle | CreateParticle (string prefabName, Vector2 position, float angle, float speed, Hull hullGuess=null, float collisionIgnoreTimer=0f, Tuple< Vector2, Vector2 > tracerPoints=null) |
|
Particle | CreateParticle (string prefabName, Vector2 position, Vector2 velocity, float rotation=0.0f, Hull hullGuess=null, float collisionIgnoreTimer=0f, Tuple< Vector2, Vector2 > tracerPoints=null) |
|
Particle | CreateParticle (ParticlePrefab prefab, Vector2 position, Vector2 velocity, float rotation=0.0f, Hull hullGuess=null, bool drawOnTop=false, float collisionIgnoreTimer=0f, float lifeTimeMultiplier=1f, Tuple< Vector2, Vector2 > tracerPoints=null) |
|
void | RemoveParticle (Particle particle) |
|
void | Update (float deltaTime) |
|
void | UpdateTransforms () |
|
Dictionary< ParticlePrefab, int > | CountActiveParticles () |
|
void | Draw (SpriteBatch spriteBatch, bool inWater, bool? inSub, ParticleBlendState blendState) |
|
void | ClearParticles () |
|
void | RemoveByPrefab (ParticlePrefab prefab) |
|
Definition at line 14 of file ParticleManager.cs.
◆ ParticleManager()
Barotrauma.Particles.ParticleManager.ParticleManager |
( |
Camera |
cam | ) |
|
◆ ClearParticles()
void Barotrauma.Particles.ParticleManager.ClearParticles |
( |
| ) |
|
◆ CountActiveParticles()
Dictionary<ParticlePrefab, int> Barotrauma.Particles.ParticleManager.CountActiveParticles |
( |
| ) |
|
◆ CreateParticle() [1/3]
Particle Barotrauma.Particles.ParticleManager.CreateParticle |
( |
ParticlePrefab |
prefab, |
|
|
Vector2 |
position, |
|
|
Vector2 |
velocity, |
|
|
float |
rotation = 0.0f , |
|
|
Hull |
hullGuess = null , |
|
|
bool |
drawOnTop = false , |
|
|
float |
collisionIgnoreTimer = 0f , |
|
|
float |
lifeTimeMultiplier = 1f , |
|
|
Tuple< Vector2, Vector2 > |
tracerPoints = null |
|
) |
| |
◆ CreateParticle() [2/3]
Particle Barotrauma.Particles.ParticleManager.CreateParticle |
( |
string |
prefabName, |
|
|
Vector2 |
position, |
|
|
float |
angle, |
|
|
float |
speed, |
|
|
Hull |
hullGuess = null , |
|
|
float |
collisionIgnoreTimer = 0f , |
|
|
Tuple< Vector2, Vector2 > |
tracerPoints = null |
|
) |
| |
◆ CreateParticle() [3/3]
Particle Barotrauma.Particles.ParticleManager.CreateParticle |
( |
string |
prefabName, |
|
|
Vector2 |
position, |
|
|
Vector2 |
velocity, |
|
|
float |
rotation = 0.0f , |
|
|
Hull |
hullGuess = null , |
|
|
float |
collisionIgnoreTimer = 0f , |
|
|
Tuple< Vector2, Vector2 > |
tracerPoints = null |
|
) |
| |
◆ Draw()
void Barotrauma.Particles.ParticleManager.Draw |
( |
SpriteBatch |
spriteBatch, |
|
|
bool |
inWater, |
|
|
bool? |
inSub, |
|
|
ParticleBlendState |
blendState |
|
) |
| |
◆ FindPrefab()
static ParticlePrefab Barotrauma.Particles.ParticleManager.FindPrefab |
( |
string |
prefabName | ) |
|
|
static |
◆ GetPrefabList()
static List<ParticlePrefab> Barotrauma.Particles.ParticleManager.GetPrefabList |
( |
| ) |
|
|
static |
◆ RemoveByPrefab()
void Barotrauma.Particles.ParticleManager.RemoveByPrefab |
( |
ParticlePrefab |
prefab | ) |
|
◆ RemoveParticle()
void Barotrauma.Particles.ParticleManager.RemoveParticle |
( |
Particle |
particle | ) |
|
◆ Update()
void Barotrauma.Particles.ParticleManager.Update |
( |
float |
deltaTime | ) |
|
◆ UpdateTransforms()
void Barotrauma.Particles.ParticleManager.UpdateTransforms |
( |
| ) |
|
◆ Camera
Camera Barotrauma.Particles.ParticleManager.Camera |
|
getset |
◆ MaxParticles
int Barotrauma.Particles.ParticleManager.MaxParticles |
|
getset |
◆ ParticleCount
int Barotrauma.Particles.ParticleManager.ParticleCount |
|
get |