Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
AABBRectangle
Rectangle
Terraria.Gore.AABBRectangle
get
Definition at line
67
of file
Gore.cs
.
68
{
69
get
70
{
71
if
(
TextureAssets
.
Gore
[
type
].IsLoaded)
72
{
73
Rectangle
sourceRectangle =
Frame
.
GetSourceRectangle
(
TextureAssets
.
Gore
[
type
].Value);
74
return
new
Rectangle
((
int
)
position
.
X
, (
int
)
position
.
Y
, (
int
)((
float
)sourceRectangle.
Width
*
scale
), (
int
)((
float
)sourceRectangle.
Height
*
scale
));
75
}
76
return
new
Rectangle
(0, 0, 1, 1);
77
}
78
}
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:17
Terraria.Gore.Frame
SpriteFrame Frame
Definition
Gore.cs:41
Terraria.Gore.type
int type
Definition
Gore.cs:27
Terraria.Gore.scale
float scale
Definition
Gore.cs:23
Microsoft.Xna.Framework.Rectangle.Height
int Height
Definition
Rectangle.cs:23
Microsoft.Xna.Framework.Rectangle.Width
int Width
Definition
Rectangle.cs:20
Microsoft.Xna.Framework.Rectangle
Definition
Rectangle.cs:12
Microsoft.Xna.Framework.Vector2.X
float X
Definition
Vector2.cs:14
Microsoft.Xna.Framework.Vector2.Y
float Y
Definition
Vector2.cs:17
Terraria.DataStructures.SpriteFrame.GetSourceRectangle
Rectangle GetSourceRectangle(Texture2D texture)
Definition
SpriteFrame.cs:72
Terraria
Gore
Generated by
1.10.0