TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ oldSpriteDirection

int [] Terraria.Projectile.oldSpriteDirection = new int[10]

Holds the value of F:Terraria.Projectile.spriteDirection from previous updates from newest to oldest. Use for drawing trails. Must be used with F:Terraria.ID.ProjectileID.Sets.TrailCacheLength and F:Terraria.ID.ProjectileID.Sets.TrailingMode to be used properly.

Definition at line 314 of file Projectile.cs.

Referenced by Terraria.Projectile.CloneDefaults(), Terraria.Projectile.SetDefaults(), and Terraria.Projectile.Update().