tModLoader  0.12 Alpha
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)
 

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]