TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.Gore Class Reference
+ Collaboration diagram for Terraria.Gore:

Public Member Functions

void Update ()
 
Color GetAlpha (Color newColor)
 

Static Public Member Functions

static Gore NewGorePerfect (IEntitySource source, Vector2 Position, Vector2 Velocity, int Type, float Scale=1f)
 Spawns a gore with an exact position and velocity, no randomization.
 
static Gore NewGoreDirect (IEntitySource source, Vector2 Position, Vector2 Velocity, int Type, float Scale=1f)
 Spawns a gore with given properties.
 
static int NewGore (IEntitySource source, Vector2 Position, Vector2 Velocity, int Type, float Scale=1f)
 Spawns a gore with given properties.
 

Public Attributes

Vector2 position
 
Vector2 velocity
 
float rotation
 
float scale
 
int alpha
 
int type
 
float light
 
bool active
 
bool sticky = true
 
int timeLeft = goreTime
 
bool behindTiles
 
byte frameCounter
 
SpriteFrame Frame = new SpriteFrame(1, 1)
 
Vector2 drawOffset
 

Static Public Attributes

static int goreTime = 600
 

Static Package Functions

static Gore NewGorePerfect (Vector2 Position, Vector2 Velocity, int Type, float Scale=1f)
 
static Gore NewGoreDirect (Vector2 Position, Vector2 Velocity, int Type, float Scale=1f)
 
static int NewGore (Vector2 Position, Vector2 Velocity, int Type, float Scale=1f)
 

Package Attributes

int realType
 

Properties

float Width [get]
 
float Height [get]
 
Rectangle AABBRectangle [get]
 
byte frame [get, set]
 
byte numFrames [get, set]
 
ModGore ModGore [get, private set]
 

Private Member Functions

void UpdateAmbientFloorCloud ()
 
void UpdateAmbientAirborneCloud ()
 
void UpdateFogMachineCloud ()
 
void UpdateLightningBunnySparks ()
 
float ChumFloatingChunk_GetWaterLine (int X, int Y)
 
bool DeactivateIfOutsideOfWorld ()
 
void Gore_UpdateLeaf ()
 
void Gore_UpdateSail ()
 
void ResetNewFields ()
 

Detailed Description

Definition at line 14 of file Gore.cs.


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