terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ InRange()

bool Terraria.GameContent.UI.WorldUIAnchor.InRange ( Vector2 target,
float tileRangeX,
float tileRangeY )
inline

Definition at line 77 of file WorldUIAnchor.cs.

78 {
80 if (anchorType == WorldUIAnchor.AnchorType.Entity)
81 {
82 Vector2 center = this.entity.Center;
83 if (anchorType == WorldUIAnchor.AnchorType.Entity)
84 {
85 }
86 Entity entity = this.entity;
87 int width = entity.width;
89 if (anchorType == WorldUIAnchor.AnchorType.Entity)
90 {
91 }
92 Entity entity2 = this.entity;
93 int height = entity2.height;
94 float x = this.pos.X;
95 if (entity2 == null)
96 {
97 }
98 float y = this.pos.Y;
99 if (entity2 == null)
100 {
101 }
102 float x2 = this.pos.X;
103 if (entity2 == null)
104 {
105 }
106 float x3 = this.size.X;
107 }
108 return true;
109 }
class f__AnonymousType0<< Count > j__TPar
Vector2 Center
Definition Entity.cs:134

References Terraria.Entity.Center, Terraria.GameContent.UI.WorldUIAnchor.entity, Terraria.Entity.height, j__TPar, Terraria.GameContent.UI.WorldUIAnchor.pos, Terraria.GameContent.UI.WorldUIAnchor.size, Terraria.GameContent.UI.WorldUIAnchor.type, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.