tModLoader v2024.04
A mod to make and play Terraria mods
GasParticle Class Reference

Inherits ABasicParticle.

Public Member Functions

override void Draw (ref ParticleRendererSettings settings, SpriteBatch spritebatch)
override void FetchFromPool ()
override void Update (ref ParticleRendererSettings settings)
- Public Member Functions inherited from ABasicParticle
abstract void Draw (ref ParticleRendererSettings settings, SpriteBatch spritebatch)
virtual void FetchFromPool ()
void RestInPool ()
virtual void SetBasicInfo (Asset< Texture2D > textureAsset, Rectangle? frame, Vector2 initialVelocity, Vector2 initialLocalPosition)
virtual void Update (ref ParticleRendererSettings settings)
void FetchFromPool ()
void RestInPool ()
void Draw (ref ParticleRendererSettings settings, SpriteBatch spritebatch)
void Update (ref ParticleRendererSettings settings)

Public Attributes

float AdditiveAmount = 1f
Color ColorTint
float FadeInEnd = 20f
float FadeInNormalizedTime = 0.25f
float FadeOutEnd = 45f
float FadeOutNormalizedTime = 0.75f
float FadeOutStart = 30f
float InitialScale = 1f
Color LightColorTint
float Opacity
float SlowdownScalar = 0.95f
float TimeToLive = 80f
- Public Attributes inherited from ABasicParticle
Vector2 AccelerationPerFrame
Vector2 LocalPosition
float Rotation
float RotationAcceleration
float RotationVelocity
Vector2 Scale
Vector2 ScaleAcceleration
Vector2 ScaleVelocity
Vector2 Velocity

Additional Inherited Members

- Protected Attributes inherited from ABasicParticle
Rectangle _frame
Vector2 _origin
Asset< Texture2D > _texture
- Properties inherited from ABasicParticle
bool IsRestingInPool [get]
bool ShouldBeRemovedFromRenderer [get, protected set]
- Properties inherited from IPooledParticle
bool IsRestingInPool [get]
- Properties inherited from IParticle
bool ShouldBeRemovedFromRenderer [get]

Member Function Documentation

◆ Draw()

override void GasParticle.Draw ( ref ParticleRendererSettings  settings,
SpriteBatch  spritebatch 

Implements ABasicParticle.

◆ FetchFromPool()

override void GasParticle.FetchFromPool ( )

Reimplemented from ABasicParticle.

◆ Update()

override void GasParticle.Update ( ref ParticleRendererSettings  settings)

Reimplemented from ABasicParticle.