tModLoader v2024.09
A mod to make and play Terraria mods
ABasicParticle Class Referenceabstract

Inherits IPooledParticle, and IParticle.

Inherited by FadingParticle, FlameParticle, GasParticle, PrettySparkleParticle, and RandomizedFrameParticle.

Public Member Functions

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

Vector2 AccelerationPerFrame
 
Vector2 LocalPosition
 
float Rotation
 
float RotationAcceleration
 
float RotationVelocity
 
Vector2 Scale
 
Vector2 ScaleAcceleration
 
Vector2 ScaleVelocity
 
Vector2 Velocity
 

Protected Attributes

Rectangle _frame
 
Vector2 _origin
 
Asset< Texture2D > _texture
 

Properties

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()

abstract void ABasicParticle.Draw ( ref ParticleRendererSettings  settings,
SpriteBatch  spritebatch 
)
pure virtual

Implements IParticle.

◆ FetchFromPool()

virtual void ABasicParticle.FetchFromPool ( )
virtual

Implements IPooledParticle.

◆ RestInPool()

void ABasicParticle.RestInPool ( )

Implements IPooledParticle.

◆ Update()

virtual void ABasicParticle.Update ( ref ParticleRendererSettings  settings)
virtual

Implements IParticle.

Property Documentation

◆ IsRestingInPool

bool ABasicParticle.IsRestingInPool
get

Implements IPooledParticle.

◆ ShouldBeRemovedFromRenderer

bool ABasicParticle.ShouldBeRemovedFromRenderer
getprotected set

Implements IParticle.