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

◆ getRect()

Rectangle Terraria.NPC.getRect ( )
inline

Definition at line 106798 of file NPC.cs.

106799 {
106800 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
106801 return new Rectangle((int)position.X, (int)position.Y, width, height);
106802 }
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

Referenced by Terraria.NPC.VanillaAI_Inner().

+ Here is the caller graph for this function: