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

◆ Top

Vector2 Terraria.Entity.Top
getsetinherited

Definition at line 120 of file Entity.cs.

121 {
122 get
123 {
124 //IL_0020: Unknown result type (might be due to invalid IL or missing references)
125 return new Vector2(position.X + (float)(width / 2), position.Y);
126 }
127 set
128 {
129 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
130 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
131 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
132 //IL_001c: Unknown result type (might be due to invalid IL or missing references)
133 position = new Vector2(value.X - (float)(width / 2), value.Y);
134 }
135 }
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

Referenced by Terraria.NPC.AI_007_TownEntities(), Terraria.GameContent.UI.EmoteBubble.CheckForNPCsToReactToEmoteBubble(), and Terraria.GameContent.UI.EmoteBubble.GetPosition().