tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Graphics.Renderers.ABasicParticle Class Referenceabstract

Inherits Terraria.Graphics.Renderers.IPooledParticle, and Terraria.Graphics.Renderers.IParticle.

Inherited by Terraria.Graphics.Renderers.FadingParticle, Terraria.Graphics.Renderers.FlameParticle, Terraria.Graphics.Renderers.PrettySparkleParticle, and Terraria.Graphics.Renderers.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 Terraria.Graphics.Renderers.IPooledParticle
bool IsRestingInPool [get]
 
- Properties inherited from Terraria.Graphics.Renderers.IParticle
bool ShouldBeRemovedFromRenderer [get]
 

Member Function Documentation

◆ Draw()

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

◆ FetchFromPool()

virtual void Terraria.Graphics.Renderers.ABasicParticle.FetchFromPool ( )
virtual

◆ RestInPool()

void Terraria.Graphics.Renderers.ABasicParticle.RestInPool ( )

◆ Update()

virtual void Terraria.Graphics.Renderers.ABasicParticle.Update ( ref ParticleRendererSettings  settings)
virtual

Property Documentation

◆ IsRestingInPool

bool Terraria.Graphics.Renderers.ABasicParticle.IsRestingInPool
get

◆ ShouldBeRemovedFromRenderer

bool Terraria.Graphics.Renderers.ABasicParticle.ShouldBeRemovedFromRenderer
getprotected set