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

◆ Right

Vector2 Terraria.Entity.Right
getsetinherited

Definition at line 103 of file Entity.cs.

104 {
105 get
106 {
107 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
108 return new Vector2(position.X + (float)width, position.Y + (float)(height / 2));
109 }
110 set
111 {
112 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
113 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
114 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
115 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
116 position = new Vector2(value.X - (float)width, value.Y - (float)(height / 2));
117 }
118 }
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.Projectile.AI_144_DD2Pet(), Terraria.Cinematics.DD2Film.DryadPortalFade(), Terraria.Player.FindSharpTearsSpot(), Terraria.Collision.GetEntityEdgeTiles(), Terraria.NPC.GetFairyTreasureCoords(), and Terraria.ModLoader.SantankMountJump.OnStarted().