Assorted static "helper" functions pertaining to dusts.
More...
|
| 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...
|
| |
Assorted static "helper" functions pertaining to dusts.
Definition at line 11 of file DustHelpers.cs.
◆ 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
-
- Returns
Definition at line 27 of file DustHelpers.cs.
◆ GoldGlitterTypeID
| const int HamstarHelpers.Helpers.Dusts.DustHelpers.GoldGlitterTypeID = 269 |
◆ TeleportSparkleTypeID
| const int HamstarHelpers.Helpers.Dusts.DustHelpers.TeleportSparkleTypeID = 15 |
The documentation for this class was generated from the following file: