terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
WindGrid.cs
Go to the documentation of this file.
1using System;
7
9{
10 [global::Cpp2ILInjected.Token(Token = "0x20009EE")]
11 public class WindGrid
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x6004B52")]
14 [global::Cpp2ILInjected.Address(RVA = "0x8A6228", Offset = "0x8A6228", Length = "0x94")]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "EnsureWindGridSize", ReturnType = typeof(void))]
16 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
17 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Max", MemberParameters = new object[]
18 {
19 typeof(int),
20 typeof(int)
21 }, ReturnType = typeof(int))]
22 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
23 public void SetSize(int targetWidth, int targetHeight)
24 {
25 throw null;
26 }
27
28 [global::Cpp2ILInjected.Token(Token = "0x6004B53")]
29 [global::Cpp2ILInjected.Address(RVA = "0x8A6358", Offset = "0x8A6358", Length = "0x78")]
30 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "Update", ReturnType = typeof(void))]
31 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_SettingsEnabled_TilesSwayInWind", ReturnType = typeof(bool))]
33 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
34 public void Update()
35 {
36 throw null;
37 }
38
39 [global::Cpp2ILInjected.Token(Token = "0x6004B54")]
40 [global::Cpp2ILInjected.Address(RVA = "0x8A6514", Offset = "0x8A6514", Length = "0x64")]
41 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
42 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetWindGridPush", MemberParameters = new object[]
43 {
44 typeof(int),
45 typeof(int),
46 typeof(int),
47 typeof(float)
48 }, ReturnType = typeof(float))]
49 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetWindGridPush2Axis", MemberParameters = new object[]
50 {
51 typeof(int),
52 typeof(int),
53 typeof(int),
54 typeof(float),
55 typeof(ref float),
56 typeof(ref float)
57 }, ReturnType = typeof(void))]
58 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetWindGridPushComplex", MemberParameters = new object[]
59 {
60 typeof(int),
61 typeof(int),
62 typeof(int),
63 typeof(float),
64 typeof(int),
65 typeof(bool)
66 }, ReturnType = typeof(float))]
67 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetHighestWindGridPushComplex", MemberParameters = new object[]
68 {
69 typeof(int),
70 typeof(int),
71 typeof(int),
72 typeof(int),
73 typeof(int),
74 typeof(float),
75 typeof(int),
76 typeof(bool)
77 }, ReturnType = typeof(float))]
78 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
79 public void GetWindTime(int tileX, int tileY, int timeThreshold, out int windTimeLeft, out int directionX, out int directionY)
80 {
81 throw null;
82 }
83
84 [global::Cpp2ILInjected.Token(Token = "0x6004B55")]
85 [global::Cpp2ILInjected.Address(RVA = "0x8A62BC", Offset = "0x8A62BC", Length = "0x9C")]
86 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
87 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
88 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Array), Member = "GetLength", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
89 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
90 private void ResizeGrid()
91 {
92 throw null;
93 }
94
95 [global::Cpp2ILInjected.Token(Token = "0x6004B56")]
96 [global::Cpp2ILInjected.Address(RVA = "0x8A6578", Offset = "0x8A6578", Length = "0x44")]
97 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
98 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
99 private void SetWindTime(int tileX, int tileY, int directionX, int directionY)
100 {
101 throw null;
102 }
103
104 [global::Cpp2ILInjected.Token(Token = "0x6004B57")]
105 [global::Cpp2ILInjected.Address(RVA = "0x8A63D0", Offset = "0x8A63D0", Length = "0x144")]
106 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
107 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
108 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetClient", ReturnType = typeof(bool))]
109 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WindGrid), Member = "ScanPlayer", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
110 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
111 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
112 private void ScanPlayers()
113 {
114 throw null;
115 }
116
117 [global::Cpp2ILInjected.Token(Token = "0x6004B58")]
118 [global::Cpp2ILInjected.Address(RVA = "0x8A65BC", Offset = "0x8A65BC", Length = "0x3B0")]
119 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
120 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WindGrid), Member = "ScanPlayers", ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_Camera", ReturnType = typeof(Camera))]
123 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Camera), Member = "get_Center", ReturnType = typeof(Vector2))]
124 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Camera), Member = "get_UnscaledSize", ReturnType = typeof(Vector2))]
125 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "CenteredRectangle", MemberParameters = new object[]
126 {
129 }, ReturnType = typeof(Rectangle))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_Hitbox", ReturnType = typeof(Rectangle))]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "Intersects", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(bool))]
132 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "HasNaNs", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(bool))]
133 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Sign", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(int))]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_BottomRight", ReturnType = typeof(Vector2))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Collision), Member = "GetTilesIn", MemberParameters = new object[]
136 {
140 }, ReturnType = typeof(void))]
141 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point>), Member = "GetEnumerator", ReturnType = "Enumerator<T>")]
142 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
143 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
144 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 22)]
145 private void ScanPlayer(int i)
146 {
147 throw null;
148 }
149
150 [global::Cpp2ILInjected.Token(Token = "0x6004B59")]
151 [global::Cpp2ILInjected.Address(RVA = "0x8A696C", Offset = "0x8A696C", Length = "0x7C")]
152 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
153 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LocalUserGameState), Member = ".ctor", ReturnType = typeof(void))]
154 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
156 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
157 public WindGrid()
158 {
159 throw null;
160 }
161
162 // Note: this type is marked as 'beforefieldinit'.
163 [global::Cpp2ILInjected.Token(Token = "0x6004B5A")]
164 [global::Cpp2ILInjected.Address(RVA = "0x8A69E8", Offset = "0x8A69E8", Length = "0x8C")]
165 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point>), Member = ".ctor", ReturnType = typeof(void))]
167 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
168 static WindGrid()
169 {
170 throw null;
171 }
172
173 [global::Cpp2ILInjected.Token(Token = "0x40085A3")]
174 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
176
177 [global::Cpp2ILInjected.Token(Token = "0x40085A4")]
178 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
179 private int _width;
180
181 [global::Cpp2ILInjected.Token(Token = "0x40085A5")]
182 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1C")]
183 private int _height;
184
185 [global::Cpp2ILInjected.Token(Token = "0x40085A6")]
186 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
187 private int _gameTime;
188
189 [global::Cpp2ILInjected.Token(Token = "0x40085A7")]
190 private static List<Point> points;
191
192 [global::Cpp2ILInjected.Token(Token = "0x20009EF")]
193 private struct WindCoord
194 {
195 [global::Cpp2ILInjected.Token(Token = "0x40085A8")]
196 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
197 public int Time;
198
199 [global::Cpp2ILInjected.Token(Token = "0x40085A9")]
200 [global::Cpp2ILInjected.FieldOffset(Offset = "0x4")]
201 public int DirectionX;
202
203 [global::Cpp2ILInjected.Token(Token = "0x40085AA")]
204 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
205 public int DirectionY;
206 }
207 }
208}
class f__AnonymousType0<< Count > j__TPar
void SetWindTime(int tileX, int tileY, int directionX, int directionY)
Definition WindGrid.cs:99
void SetSize(int targetWidth, int targetHeight)
Definition WindGrid.cs:23
void GetWindTime(int tileX, int tileY, int timeThreshold, out int windTimeLeft, out int directionX, out int directionY)
Definition WindGrid.cs:79