Terraria.ModLoader.ModDust

This class represents a type of dust that is added by a mod. Only one instance of this class will ever exist for each type of dust you add.

Methods

GetDust(System.Int32)()
Gets the ModDust instance with the given type. Returns null if no ModDust with the given type exists.
Autoload(System.String@,System.String@)()
Allows you to automatically add a type of dust without having to use Mod.AddDust. By default returns the mod's Autoload property. Return true to automatically add the dust. Name will be initialized to the dust's class name, and Texture will be initialized to the dust's namespace and overriding class name with periods replaced with slashes. The name parameter determines the internal name and the texture parameter determines the texture path.
SetDefaults()
Allows you to set this ModDust's updateType field and modify the Terraria.GameContent.ChildSafety.SafeDust array.
OnSpawn(Terraria.Dust)()
Allows you to modify a dust's fields when it is created.
Update(Terraria.Dust)()
Allows you to customize how you want this type of dust to behave. Return true to allow for vanilla dust updating to also take place; will return true by default. Normally you will want this to return false.
MidUpdate(Terraria.Dust)()
Allows you to add behavior to this dust on top of the default dust behavior. Return true if you're applying your own behavior; return false to make the dust slow down by itself. Normally you will want this to return true.
GetAlpha(Terraria.Dust,Microsoft.Xna.Framework.Color)()
Allows you to override the color this dust will draw in. Return null to draw it in the normal light color; returns null by default. Note that the dust.noLight field makes the dust ignore lighting and draw in full brightness, and can be set in OnSpawn instead of having to return Color.White here.