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
WorldUIAnchor.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000A6B RID: 2667
7 public class WorldUIAnchor
8 {
9 // Token: 0x06004EA9 RID: 20137 RVA: 0x00277978 File Offset: 0x00275B78
11 {
12 if (!true)
13 {
14 }
15 if (true)
16 {
17 return;
18 }
19 if (!true)
20 {
21 }
23 }
24
25 // Token: 0x06004EAA RID: 20138 RVA: 0x00277998 File Offset: 0x00275B98
26 public WorldUIAnchor(Entity anchor)
27 {
28 if (!true)
29 {
30 }
31 if (true)
32 {
33 return;
34 }
35 if (!true)
36 {
37 }
38 }
39
40 // Token: 0x06004EAB RID: 20139 RVA: 0x002779B0 File Offset: 0x00275BB0
41 public WorldUIAnchor(Vector2 anchor)
42 {
43 if (!true)
44 {
45 }
46 if (true)
47 {
48 return;
49 }
50 if (!true)
51 {
52 }
53 this.size = 1;
54 base..ctor();
56 }
57
58 // Token: 0x06004EAC RID: 20140 RVA: 0x002779DC File Offset: 0x00275BDC
59 public WorldUIAnchor(int topLeftX, int topLeftY, int width, int height)
60 {
61 if (!true)
62 {
63 }
64 if (true)
65 {
66 return;
67 }
68 if (!true)
69 {
70 }
71 this.size = 1;
72 base..ctor();
74 }
75
76 // Token: 0x06004EAD RID: 20141 RVA: 0x00277A0C File Offset: 0x00275C0C
77 public bool InRange(Vector2 target, float tileRangeX, float tileRangeY)
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;
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 }
110
111 // Token: 0x040087C0 RID: 34752
113
114 // Token: 0x040087C1 RID: 34753
116
117 // Token: 0x040087C2 RID: 34754
118 public Vector2 pos;
119
120 // Token: 0x040087C3 RID: 34755
121 public Vector2 size;
122
123 // Token: 0x02000A6C RID: 2668
124 public enum AnchorType
125 {
126 // Token: 0x040087C5 RID: 34757
127 Entity,
128 // Token: 0x040087C6 RID: 34758
129 Tile,
130 // Token: 0x040087C7 RID: 34759
131 Pos,
132 // Token: 0x040087C8 RID: 34760
133 None
134 }
135 }
136}
class f__AnonymousType0<< Count > j__TPar
Vector2 Center
Definition Entity.cs:134
bool InRange(Vector2 target, float tileRangeX, float tileRangeY)
WorldUIAnchor(int topLeftX, int topLeftY, int width, int height)