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

◆ getRect()

Rectangle Terraria.Projectile.getRect ( )
inline

Definition at line 15670 of file Projectile.cs.

15671 {
15672 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
15673 return new Rectangle((int)position.X, (int)position.Y, width, height);
15674 }
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51

References Terraria.Entity.height, Terraria.Entity.position, and Terraria.Entity.width.