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
{
86
Rectangle
sourceRectangle
=
Frame
.
GetSourceRectangle
(
TextureAssets
.
Gore
[
type
].Value);
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
}
List
Terraria.GameContent.TextureAssets.Gore
static Asset< Texture2D >[] Gore
Definition
TextureAssets.cs:360
Terraria.GameContent.TextureAssets
Definition
TextureAssets.cs:8
Terraria.Gore.position
Vector2 position
Definition
Gore.cs:18
Terraria.Gore.Frame
SpriteFrame Frame
Definition
Gore.cs:42
Terraria.Gore.type
int type
Definition
Gore.cs:28
Terraria.Gore.scale
float scale
Definition
Gore.cs:24
Terraria.DataStructures.SpriteFrame.GetSourceRectangle
Rectangle GetSourceRectangle(Texture2D texture)
Definition
SpriteFrame.cs:72
Terraria
Gore
Generated by
1.10.0