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

◆ AABBRectangle

Rectangle Terraria.Gore.AABBRectangle
get

Definition at line 74 of file Gore.cs.

75 {
76 get
77 {
78 //IL_0070: Unknown result type (might be due to invalid IL or missing references)
79 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
80 //IL_002f: Unknown result type (might be due to invalid IL or missing references)
81 //IL_0048: Unknown result type (might be due to invalid IL or missing references)
82 //IL_0057: Unknown result type (might be due to invalid IL or missing references)
83 //IL_0066: Unknown result type (might be due to invalid IL or missing references)
84 if (TextureAssets.Gore[type].IsLoaded)
85 {
87 return new Rectangle((int)position.X, (int)position.Y, (int)((float)sourceRectangle.Width * scale), (int)((float)sourceRectangle.Height * scale));
88 }
89 return new Rectangle(0, 0, 1, 1);
90 }
91 }
static Asset< Texture2D >[] Gore
Vector2 position
Definition Gore.cs:18
SpriteFrame Frame
Definition Gore.cs:42
int type
Definition Gore.cs:28
float scale
Definition Gore.cs:24
Rectangle GetSourceRectangle(Texture2D texture)