tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Dust Class Reference

Public Member Functions

Color GetAlpha (Color newColor)
 
Color GetColor (Color newColor)
 
float GetVisualRotation ()
 
float GetVisualScale ()
 

Static Public Member Functions

static Dust CloneDust (Dust rf)
 
static Dust CloneDust (int dustIndex)
 
static int dustWater ()
 
static int NewDust (Vector2 Position, int Width, int Height, int Type, float SpeedX=0f, float SpeedY=0f, int Alpha=0, Color newColor=default(Color), float Scale=1f)
 
static Dust NewDustDirect (Vector2 Position, int Width, int Height, int Type, float SpeedX=0f, float SpeedY=0f, int Alpha=0, Color newColor=default(Color), float Scale=1f)
 
static Dust NewDustPerfect (Vector2 Position, int Type, Vector2? Velocity=null, int Alpha=0, Color newColor=default(Color), float Scale=1f)
 
static void QuickBox (Vector2 topLeft, Vector2 bottomRight, int divisions, Color color, Action< Dust > manipulator)
 
static Dust QuickDust (int x, int y, Color color)
 
static Dust QuickDust (Point tileCoords, Color color)
 
static Dust QuickDust (Vector2 pos, Color color)
 
static void QuickDustLine (Vector2 start, Vector2 end, float splits, Color color)
 
static Dust QuickDustSmall (Vector2 pos, Color color, bool floorPositionValues=false)
 
static void UpdateDust ()
 

Public Attributes

bool active
 
int alpha
 
Color color
 
object customData
 
int dustIndex
 
float fadeIn
 
bool firstFrame
 
Rectangle frame
 
bool noGravity
 
bool noLight
 
bool noLightEmittence
 
Vector2 position
 
float rotation
 
float scale
 
ArmorShaderData shader
 
int type
 
Vector2 velocity
 

Static Public Attributes

static float dCount
 
static int lavaBubbles
 
static int SandStormCount