Mod Helpers  v5.9.6
A centralized collection of library code, helpful services, and end-user functions for mod management and information.
HamstarHelpers.Helpers.Dusts.DustHelpers Class Reference

Assorted static "helper" functions pertaining to dusts. More...

Static Public Member Functions

static bool IsActive (int who)
 Indicates if the given dust (in Main.dust) is active. More...
 
static IList< Dust > GetActive ()
 Gets all active dusts (from Main.dust). More...
 
static int [] CreateMany (int dustType, Vector2 position, int quantity, int width=16, int height=16, bool noGravity=false, bool noLight=false, float speedX=0f, float speedY=0f, Color color=default(Color), byte alpha=0, ArmorShaderData shader=null, float scale=1f)
 Quickly creates a bunch of dusts of a given type at a given location with the given settings. More...
 

Public Attributes

const int TeleportSparkleTypeID = 15
 
const int GoldGlitterTypeID = 269
 

Detailed Description

Assorted static "helper" functions pertaining to dusts.

Definition at line 11 of file DustHelpers.cs.

Member Function Documentation

◆ CreateMany()

static int [] HamstarHelpers.Helpers.Dusts.DustHelpers.CreateMany ( int  dustType,
Vector2  position,
int  quantity,
int  width = 16,
int  height = 16,
bool  noGravity = false,
bool  noLight = false,
float  speedX = 0f,
float  speedY = 0f,
Color  color = default(Color),
byte  alpha = 0,
ArmorShaderData  shader = null,
float  scale = 1f 
)
static

Quickly creates a bunch of dusts of a given type at a given location with the given settings.

Parameters
dustType
position
quantity
width
height
noGravity
noLight
speedX
speedY
color
alpha
shader
scale
Returns

Definition at line 68 of file DustHelpers.cs.

◆ GetActive()

static IList<Dust> HamstarHelpers.Helpers.Dusts.DustHelpers.GetActive ( )
static

Gets all active dusts (from Main.dust).

Returns

Definition at line 36 of file DustHelpers.cs.

◆ IsActive()

static bool HamstarHelpers.Helpers.Dusts.DustHelpers.IsActive ( int  who)
static

Indicates if the given dust (in Main.dust) is active.

Parameters
who
Returns

Definition at line 27 of file DustHelpers.cs.

Member Data Documentation

◆ GoldGlitterTypeID

const int HamstarHelpers.Helpers.Dusts.DustHelpers.GoldGlitterTypeID = 269

Definition at line 16 of file DustHelpers.cs.

◆ TeleportSparkleTypeID

const int HamstarHelpers.Helpers.Dusts.DustHelpers.TeleportSparkleTypeID = 15

Definition at line 13 of file DustHelpers.cs.


The documentation for this class was generated from the following file: