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

◆ NewDustPerfect()

static Dust Terraria.Dust.NewDustPerfect ( Vector2 Position,
int Type,
Vector2? Velocity = null,
int Alpha = 0,
Color newColor = default(Color),
float Scale = 1f )
inlinestatic

Attempts to spawn a single Dust into the game world. Position indicates the spawn position and Velocity indicates the initial velocity. Unlike M:Terraria.Dust.NewDust(Microsoft.Xna.Framework.Vector2,System.Int32,System.Int32,System.Int32,System.Single,System.Single,System.Int32,Microsoft.Xna.Framework.Color,System.Single), position and velocity will not be slightly randomized, making this method suitable for visual effects that need exact positioning.

Parameters
Position
Type
Velocity
Alpha
newColor
Scale
Returns
The T:Terraria.Dust instance spawned

Definition at line 114 of file Dust.cs.

115 {
116 //IL_0005: Unknown result type (might be due to invalid IL or missing references)
117 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
118 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
119 //IL_0021: Unknown result type (might be due to invalid IL or missing references)
120 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
121 //IL_0037: Unknown result type (might be due to invalid IL or missing references)
122 Dust dust = Main.dust[NewDust(Position, 0, 0, Type, 0f, 0f, Alpha, newColor, Scale)];
123 dust.position = Position;
124 if (Velocity.HasValue)
125 {
126 dust.velocity = Velocity.Value;
127 }
128 return dust;
129 }
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)
Attempts to spawn a single Dust into the game world. The Position, Width, and Height parameters dicta...
Definition Dust.cs:173

References Terraria.Main.dust, and Terraria.Dust.NewDust().

Referenced by Terraria.Projectile.AI_001(), Terraria.NPC.AI_001_Slimes(), Terraria.NPC.AI_007_TownEntities(), Terraria.Projectile.AI_016(), Terraria.NPC.AI_026_Unicorns(), Terraria.NPC.AI_047_GolemFist(), Terraria.Projectile.AI_075(), Terraria.NPC.AI_107_ImprovedWalkers(), Terraria.NPC.AI_111_DD2LightningBug(), Terraria.NPC.AI_120_HallowBoss_DoMagicEffect(), Terraria.Projectile.AI_147_Explosion(), Terraria.Projectile.AI_150_GolfClubHelper(), Terraria.Projectile.AI_157_SharpTears(), Terraria.Projectile.AI_162_TigerPounce(), Terraria.Projectile.AI_168_FirstFractal(), Terraria.Projectile.AI_171_HallowBossRainbowStreak(), Terraria.Projectile.AI_179_FairyQueenLance(), Terraria.Projectile.AI_181_FairyQueenRangedItemShot(), Terraria.Projectile.AI_188_LightsBane(), Terraria.Projectile.AI_189_Volcano(), Terraria.Projectile.AI_190_NightsEdge(), Terraria.Projectile.AI_191_TrueNightsEdge(), Terraria.Projectile.AI_192_JuminoAnimation(), Terraria.Projectile.AI_195_JimsDrone(), Terraria.GameContent.Drawing.ParticleOrchestrator.CopperSlimeEffect(), Terraria.Mount.DoConfettiMinecartEffect(), Terraria.Mount.DoExhaustMinecartEffect(), Terraria.Mount.DoGemMinecartEffect(), Terraria.Mount.DoSteamMinecartEffect(), Terraria.GameContent.Drawing.ParticleOrchestrator.ElderSlimeEffect(), Terraria.GameContent.Golf.GolfHelper.ContactListener.EmitGolfballExplosion(), Terraria.GameContent.Golf.GolfHelper.ContactListener.EmitGolfballExplosion_v1(), Terraria.DelegateMethods.EmitGolfCartDust_StopForSolids(), Terraria.Player.ItemCheck_ApplyHoldStyle_Inner(), Terraria.Player.ItemCheck_ApplyUseStyle_Inner(), Terraria.Player.ItemCheck_EmitDrinkParticles(), Terraria.Player.ItemCheck_EmitFoodParticles(), Terraria.Player.ItemCheck_EmitHeldItemLight(), Terraria.Player.ItemCheck_EmitUseVisuals(), Terraria.Player.ItemCheck_Inner(), Terraria.Projectile.Kill(), Terraria.Projectile.LightDisc_Bounce(), Terraria.Projectile.MakeBoulderOfEarthExplosion(), Terraria.GameContent.Drawing.ParticleOrchestrator.NerdySlimeEffect(), Terraria.GameContent.Golf.GolfHelper.ContactListener.OnCollision(), Terraria.GameContent.Drawing.ParticleOrchestrator.Spawn_AshTreeShake(), Terraria.GameContent.Drawing.ParticleOrchestrator.Spawn_Excalibur(), Terraria.GameContent.Drawing.ParticleOrchestrator.Spawn_LoadOutChange(), Terraria.GameContent.Drawing.ParticleOrchestrator.Spawn_ShimmerArrow(), Terraria.GameContent.Drawing.ParticleOrchestrator.Spawn_TerraBlade(), Terraria.GameContent.Drawing.ParticleOrchestrator.Spawn_TrueExcalibur(), Terraria.GameContent.Drawing.ParticleOrchestrator.Spawn_TrueNightsEdge(), Terraria.DelegateMethods.Minecart.SpawnFartCloud(), Terraria.Graphics.FinalFractalHelper.FinalFractalProfile.StripDust(), Terraria.Main.TeleportEffect(), Terraria.Mount.UpdateEffects(), Terraria.Item.UpdateItem_VisualEffects(), Terraria.NPC.VanillaAI_Inner(), and Terraria.Player.WingFrame().

+ Here is the call graph for this function: