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

◆ Height

float Terraria.Gore.Height
get

Definition at line 61 of file Gore.cs.

62 {
63 get
64 {
65 //IL_0030: Unknown result type (might be due to invalid IL or missing references)
66 if (TextureAssets.Gore[type].IsLoaded)
67 {
68 return scale * (float)Frame.GetSourceRectangle(TextureAssets.Gore[type].Value).Height;
69 }
70 return 1f;
71 }
72 }
static Asset< Texture2D >[] Gore
SpriteFrame Frame
Definition Gore.cs:42
int type
Definition Gore.cs:28
float scale
Definition Gore.cs:24
Rectangle GetSourceRectangle(Texture2D texture)

Referenced by Terraria.Gore.ChumFloatingChunk_GetWaterLine(), Terraria.Gore.Gore_UpdateLeaf(), Terraria.Gore.Update(), and Terraria.Gore.UpdateLightningBunnySparks().