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
ThreadedRenderManager.cs
Go to the documentation of this file.
1using System;
4using System.Text;
10using Terraria;
17using UnityEngine;
18
19[global::Cpp2ILInjected.Token(Token = "0x20002D7")]
21{
22 [global::Cpp2ILInjected.Token(Token = "0x60010B7")]
23 [global::Cpp2ILInjected.Address(RVA = "0xA4D094", Offset = "0xA4D094", Length = "0x514")]
24 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
25 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
26 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StackTrace), Member = ".ctor", MemberParameters = new object[]
27 {
29 typeof(bool)
30 }, ReturnType = typeof(void))]
31 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Environment), Member = "get_NewLine", ReturnType = typeof(string))]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StringBuilder), Member = "Append", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(StringBuilder))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Type), Member = "op_Inequality", MemberParameters = new object[]
35 {
36 typeof(Type),
38 }, ReturnType = typeof(bool))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
40 {
41 typeof(string),
42 typeof(string),
43 typeof(string),
44 typeof(string)
45 }, ReturnType = typeof(string))]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
47 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 26)]
48 private static string GetStackTrace(Thread t)
49 {
50 throw null;
51 }
52
53 [global::Cpp2ILInjected.Token(Token = "0x60010B8")]
54 [global::Cpp2ILInjected.Address(RVA = "0xA4D5A8", Offset = "0xA4D5A8", Length = "0x38")]
55 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
56 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTilesThreaded", MemberParameters = new object[]
57 {
60 typeof(int),
61 typeof(int),
62 typeof(int),
63 typeof(int),
64 typeof(bool),
65 typeof(bool),
66 typeof(bool),
67 typeof(int)
68 }, ReturnType = typeof(int))]
69 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WallDrawing), Member = "DrawWallsThreaded", MemberParameters = new object[]
70 {
73 typeof(int),
74 typeof(int),
75 typeof(int),
76 typeof(int)
77 }, ReturnType = typeof(int))]
78 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
79 public static void GetTilePartition(int partitionIndex, int partitionCount, int firstTileX, int firstTileY, int lastTileX, int lastTileY, out int resultFirstTileX, out int resultFirstTileY, out int resultLastTileX, out int resultLastTileY)
80 {
81 throw null;
82 }
83
84 [global::Cpp2ILInjected.Token(Token = "0x60010B9")]
85 [global::Cpp2ILInjected.Address(RVA = "0xA4D5E0", Offset = "0xA4D5E0", Length = "0x22C")]
86 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
87 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ThreadedRenderManager), Member = ".cctor", ReturnType = typeof(void))]
88 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
89 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadedRenderManager.RenderThreadInstance), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
91 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 18)]
93 {
94 throw null;
95 }
96
97 [global::Cpp2ILInjected.Token(Token = "0x60010BA")]
98 [global::Cpp2ILInjected.Address(RVA = "0xA4DB30", Offset = "0xA4DB30", Length = "0x10C")]
99 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
100 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
102 {
103 typeof(string),
104 typeof(object)
105 }, ReturnType = typeof(string))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogError", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
107 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadedRenderManager.RenderThreadInstance), Member = "RestartThread", ReturnType = typeof(void))]
108 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
109 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
110 public void ThreadMonitor()
111 {
112 throw null;
113 }
114
115 [global::Cpp2ILInjected.Token(Token = "0x60010BB")]
116 [global::Cpp2ILInjected.Address(RVA = "0xA4DD00", Offset = "0xA4DD00", Length = "0x230")]
117 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
118 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WallDrawing), Member = "WaitDrawThreads", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
119 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogWarning", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
123 {
124 throw null;
125 }
126
127 [global::Cpp2ILInjected.Token(Token = "0x60010BC")]
128 [global::Cpp2ILInjected.Address(RVA = "0xA4DF30", Offset = "0xA4DF30", Length = "0x2C4")]
129 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
130 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "WaitBackgroundDrawThreads", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightingEngine), Member = "ExportToMiniMapThreaded", MemberParameters = new object[]
132 {
133 typeof(int),
134 typeof(int),
135 typeof(int),
136 typeof(int)
137 }, ReturnType = typeof(void))]
138 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightMap), Member = "Blur1PassThreaded", MemberParameters = new object[]
139 {
140 typeof(int),
141 typeof(int)
142 }, ReturnType = typeof(void))]
143 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightMap), Member = "Blur2PassThreaded", MemberParameters = new object[]
144 {
145 typeof(int),
146 typeof(int)
147 }, ReturnType = typeof(void))]
148 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileLightScanner), Member = "ExportToThreaded", MemberParameters = new object[]
149 {
152 }, ReturnType = typeof(void))]
153 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "WaitDrawThreads", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
154 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogWarning", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WaitHandle), Member = "WaitAny", MemberParameters = new object[]
157 {
159 typeof(int)
160 }, ReturnType = typeof(int))]
161 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
163 {
164 throw null;
165 }
166
167 // Note: this type is marked as 'beforefieldinit'.
168 [global::Cpp2ILInjected.Token(Token = "0x60010BD")]
169 [global::Cpp2ILInjected.Address(RVA = "0xA4E1F4", Offset = "0xA4E1F4", Length = "0x64")]
170 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
171 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadedRenderManager), Member = ".ctor", ReturnType = typeof(void))]
172 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
174 {
175 throw null;
176 }
177
178 [global::Cpp2ILInjected.Token(Token = "0x4002078")]
179 public static int PrefferedThreadCount;
180
181 [global::Cpp2ILInjected.Token(Token = "0x4002079")]
182 private const int MaxThreadCount = 3;
183
184 [global::Cpp2ILInjected.Token(Token = "0x400207A")]
186
187 [global::Cpp2ILInjected.Token(Token = "0x400207B")]
188 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
190
191 [global::Cpp2ILInjected.Token(Token = "0x400207C")]
192 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
194
195 [global::Cpp2ILInjected.Token(Token = "0x400207D")]
196 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
197 private int[][] WaitThreads;
198
199 [global::Cpp2ILInjected.Token(Token = "0x400207E")]
200 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
202
203 [global::Cpp2ILInjected.Token(Token = "0x20002D8")]
205
206 [global::Cpp2ILInjected.Token(Token = "0x20002D9")]
208 {
209 [global::Cpp2ILInjected.Token(Token = "0x60010C2")]
210 [global::Cpp2ILInjected.Address(RVA = "0xA4D80C", Offset = "0xA4D80C", Length = "0x324")]
211 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ThreadedRenderManager), Member = ".ctor", ReturnType = typeof(void))]
212 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
213 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AutoResetEvent), Member = ".ctor", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
214 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point, int>), Member = ".ctor", ReturnType = typeof(void))]
215 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
216 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Game), Member = "get_GraphicsDevice", ReturnType = typeof(GraphicsDevice))]
217 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = ".ctor", MemberParameters = new object[] { typeof(GraphicsDevice) }, ReturnType = typeof(void))]
218 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileBatch), Member = ".ctor", MemberParameters = new object[] { typeof(GraphicsDevice) }, ReturnType = typeof(void))]
219 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadStart), Member = ".ctor", MemberParameters = new object[]
220 {
221 typeof(object),
223 }, ReturnType = typeof(void))]
224 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadManager), Member = "RunCritical", MemberParameters = new object[] { typeof(ThreadStart) }, ReturnType = typeof(ManagedThread))]
225 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MainThreadExecution), Member = "ExcludeThread", MemberParameters = new object[] { typeof(ManagedThread) }, ReturnType = typeof(void))]
226 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 27)]
228 {
229 throw null;
230 }
231
232 [global::Cpp2ILInjected.Token(Token = "0x60010C3")]
233 [global::Cpp2ILInjected.Address(RVA = "0xA4DC3C", Offset = "0xA4DC3C", Length = "0xC4")]
234 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ThreadedRenderManager), Member = "ThreadMonitor", ReturnType = typeof(void))]
235 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
236 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
237 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
238 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadStart), Member = ".ctor", MemberParameters = new object[]
239 {
240 typeof(object),
242 }, ReturnType = typeof(void))]
243 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadManager), Member = "RunCritical", MemberParameters = new object[] { typeof(ThreadStart) }, ReturnType = typeof(ManagedThread))]
244 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
245 public void RestartThread()
246 {
247 throw null;
248 }
249
250 [global::Cpp2ILInjected.Token(Token = "0x60010C4")]
251 [global::Cpp2ILInjected.Address(RVA = "0xA4E3C0", Offset = "0xA4E3C0", Length = "0xB8")]
252 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawBackground", ReturnType = typeof(void))]
253 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
254 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
255 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
256 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
257 public void DrawRockLayer(int bgStartX, int bgstartY, int bgLoops, int byLoopsY, int diff, Microsoft.Xna.Framework.Vector2 drawOffset)
258 {
259 throw null;
260 }
261
262 [global::Cpp2ILInjected.Token(Token = "0x60010C5")]
263 [global::Cpp2ILInjected.Address(RVA = "0xA4E478", Offset = "0xA4E478", Length = "0xB8")]
264 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawBackground", ReturnType = typeof(void))]
265 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
266 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
267 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
268 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
269 public void DrawMagmaLayer(int bgStartX, int bgstartY, int bgLoops, int byLoopsY, int diff, Microsoft.Xna.Framework.Vector2 drawOffset)
270 {
271 throw null;
272 }
273
274 [global::Cpp2ILInjected.Token(Token = "0x60010C6")]
275 [global::Cpp2ILInjected.Address(RVA = "0xA4E530", Offset = "0xA4E530", Length = "0xB8")]
276 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawBackground", ReturnType = typeof(void))]
277 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
278 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
279 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
280 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
281 public void DrawCurrentBackground(int bgStartX, int bgstartY, int bgLoops, int byLoopsY, int diff, Microsoft.Xna.Framework.Vector2 drawOffset)
282 {
283 throw null;
284 }
285
286 [global::Cpp2ILInjected.Token(Token = "0x60010C7")]
287 [global::Cpp2ILInjected.Address(RVA = "0xA4E5E8", Offset = "0xA4E5E8", Length = "0x104")]
288 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTilesThreaded", MemberParameters = new object[]
289 {
292 typeof(int),
293 typeof(int),
294 typeof(int),
295 typeof(int),
296 typeof(bool),
297 typeof(bool),
298 typeof(bool),
299 typeof(int)
300 }, ReturnType = typeof(int))]
301 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
302 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
303 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
304 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
305 public void DrawTiles(TileDrawing parent, Microsoft.Xna.Framework.Vector2 screenPosition, Microsoft.Xna.Framework.Vector2 offSet, int firstTileX, int firstTileY, int lastTileX, int lastTileY, bool solidLayer, bool forRenderTargets, bool intoRenderTargets, int waterStyleOverride = -1)
306 {
307 throw null;
308 }
309
310 [global::Cpp2ILInjected.Token(Token = "0x60010C8")]
311 [global::Cpp2ILInjected.Address(RVA = "0xA4E6EC", Offset = "0xA4E6EC", Length = "0xCC")]
312 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WallDrawing), Member = "DrawWallsThreaded", MemberParameters = new object[]
313 {
316 typeof(int),
317 typeof(int),
318 typeof(int),
319 typeof(int)
320 }, ReturnType = typeof(int))]
321 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
322 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
323 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
324 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
325 public void DrawWalls(WallDrawing parent, Microsoft.Xna.Framework.Vector2 screenPosition, Microsoft.Xna.Framework.Vector2 offSet, int firstTileX, int firstTileY, int lastTileX, int lastTileY)
326 {
327 throw null;
328 }
329
330 [global::Cpp2ILInjected.Token(Token = "0x60010C9")]
331 [global::Cpp2ILInjected.Address(RVA = "0xA4E7B8", Offset = "0xA4E7B8", Length = "0xA4")]
332 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightingEngine), Member = "ExportToMiniMapThreaded", MemberParameters = new object[]
333 {
334 typeof(int),
335 typeof(int),
336 typeof(int),
337 typeof(int)
338 }, ReturnType = typeof(void))]
339 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
340 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
341 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
342 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
343 public void ExportToMinimap(LightingEngine parent, int firstTileX, int firstTileY, int lastTileX, int lastTileY)
344 {
345 throw null;
346 }
347
348 [global::Cpp2ILInjected.Token(Token = "0x60010CA")]
349 [global::Cpp2ILInjected.Address(RVA = "0xA4E85C", Offset = "0xA4E85C", Length = "0x94")]
350 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightMap), Member = "Blur1PassThreaded", MemberParameters = new object[]
351 {
352 typeof(int),
353 typeof(int)
354 }, ReturnType = typeof(void))]
355 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
356 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
357 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
358 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
359 public void BlurPass1(LightMap parent, int start, int end)
360 {
361 throw null;
362 }
363
364 [global::Cpp2ILInjected.Token(Token = "0x60010CB")]
365 [global::Cpp2ILInjected.Address(RVA = "0xA4E8F0", Offset = "0xA4E8F0", Length = "0x94")]
366 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightMap), Member = "Blur2PassThreaded", MemberParameters = new object[]
367 {
368 typeof(int),
369 typeof(int)
370 }, ReturnType = typeof(void))]
371 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
372 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
373 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
374 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
375 public void BlurPass2(LightMap parent, int start, int end)
376 {
377 throw null;
378 }
379
380 [global::Cpp2ILInjected.Token(Token = "0x60010CC")]
381 [global::Cpp2ILInjected.Address(RVA = "0xA4E984", Offset = "0xA4E984", Length = "0xBC")]
382 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileLightScanner), Member = "ExportToThreaded", MemberParameters = new object[]
383 {
386 }, ReturnType = typeof(void))]
387 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
388 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
389 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
390 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
392 {
393 throw null;
394 }
395
396 [global::Cpp2ILInjected.Token(Token = "0x60010CD")]
397 [global::Cpp2ILInjected.Address(RVA = "0xA4EA40", Offset = "0xA4EA40", Length = "0x720")]
398 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
399 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
400 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = ".ctor", ReturnType = typeof(void))]
401 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Reset", ReturnType = typeof(bool))]
402 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileDrawing), Member = "get__currentTileDrawInfo", ReturnType = typeof(ThreadLocal<TileDrawInfo>))]
403 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ThreadLocal<>), Member = "get_Value", ReturnType = "T")]
404 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point, int>), Member = "Clear", ReturnType = typeof(void))]
405 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileDrawing), Member = "DrawTiles", MemberParameters = new object[]
406 {
409 typeof(int),
410 typeof(int),
411 typeof(int),
412 typeof(int),
413 typeof(bool),
414 typeof(bool),
415 typeof(bool),
416 typeof(int)
417 }, ReturnType = typeof(void))]
418 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "Blur2Pass", MemberParameters = new object[]
419 {
420 typeof(int),
421 typeof(int)
422 }, ReturnType = typeof(void))]
423 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightingEngine), Member = "ExportToMiniMap", MemberParameters = new object[]
424 {
425 typeof(int),
426 typeof(int),
427 typeof(int),
428 typeof(int)
429 }, ReturnType = typeof(void))]
430 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LightMap), Member = "Blur1Pass", MemberParameters = new object[]
431 {
432 typeof(int),
433 typeof(int)
434 }, ReturnType = typeof(void))]
435 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "DrawCurrentBackground", MemberParameters = new object[]
436 {
437 typeof(int),
438 typeof(int),
439 typeof(int),
440 typeof(int),
441 typeof(int),
443 }, ReturnType = typeof(void))]
444 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WallDrawing), Member = "DrawWalls", MemberParameters = new object[]
445 {
448 typeof(int),
449 typeof(int),
450 typeof(int),
451 typeof(int)
452 }, ReturnType = typeof(void))]
453 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "DrawRockLayer", MemberParameters = new object[]
454 {
455 typeof(int),
456 typeof(int),
457 typeof(int),
458 typeof(int),
459 typeof(int),
461 }, ReturnType = typeof(void))]
462 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "DrawMagmaLayer", MemberParameters = new object[]
463 {
464 typeof(int),
465 typeof(int),
466 typeof(int),
467 typeof(int),
468 typeof(int),
470 }, ReturnType = typeof(void))]
471 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileLightScanner), Member = "ExportTo", MemberParameters = new object[]
472 {
473 typeof(int),
474 typeof(int),
475 typeof(int),
476 typeof(int),
477 typeof(int),
478 typeof(int),
480 }, ReturnType = typeof(void))]
481 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EventWaitHandle), Member = "Set", ReturnType = typeof(bool))]
482 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogError", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
483 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 33)]
484 public void DrawThread()
485 {
486 throw null;
487 }
488
489 [global::Cpp2ILInjected.Token(Token = "0x400207F")]
490 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
492
493 [global::Cpp2ILInjected.Token(Token = "0x4002080")]
494 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
496
497 [global::Cpp2ILInjected.Token(Token = "0x4002081")]
498 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
500
501 [global::Cpp2ILInjected.Token(Token = "0x4002082")]
502 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
504
505 [global::Cpp2ILInjected.Token(Token = "0x4002083")]
506 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
508
509 [global::Cpp2ILInjected.Token(Token = "0x4002084")]
510 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
512
513 [global::Cpp2ILInjected.Token(Token = "0x4002085")]
514 [global::Cpp2ILInjected.FieldOffset(Offset = "0x40")]
516
517 [global::Cpp2ILInjected.Token(Token = "0x4002086")]
518 [global::Cpp2ILInjected.FieldOffset(Offset = "0x48")]
520
521 [global::Cpp2ILInjected.Token(Token = "0x4002087")]
522 [global::Cpp2ILInjected.FieldOffset(Offset = "0x50")]
524
525 [global::Cpp2ILInjected.Token(Token = "0x4002088")]
526 [global::Cpp2ILInjected.FieldOffset(Offset = "0x58")]
528
529 [global::Cpp2ILInjected.Token(Token = "0x4002089")]
530 [global::Cpp2ILInjected.FieldOffset(Offset = "0x60")]
532
533 [global::Cpp2ILInjected.Token(Token = "0x400208A")]
534 [global::Cpp2ILInjected.FieldOffset(Offset = "0x68")]
536
537 [global::Cpp2ILInjected.Token(Token = "0x400208B")]
538 [global::Cpp2ILInjected.FieldOffset(Offset = "0x70")]
539 public bool Active;
540
541 [global::Cpp2ILInjected.Token(Token = "0x400208C")]
542 [global::Cpp2ILInjected.FieldOffset(Offset = "0x71")]
543 public bool Complete;
544
545 [global::Cpp2ILInjected.Token(Token = "0x400208D")]
546 [global::Cpp2ILInjected.FieldOffset(Offset = "0x78")]
548
549 [global::Cpp2ILInjected.Token(Token = "0x400208E")]
550 [global::Cpp2ILInjected.FieldOffset(Offset = "0x80")]
552
553 [global::Cpp2ILInjected.Token(Token = "0x400208F")]
554 [global::Cpp2ILInjected.FieldOffset(Offset = "0x88")]
556
557 [global::Cpp2ILInjected.Token(Token = "0x4002090")]
558 [global::Cpp2ILInjected.FieldOffset(Offset = "0x90")]
559 private int _firstTileX;
560
561 [global::Cpp2ILInjected.Token(Token = "0x4002091")]
562 [global::Cpp2ILInjected.FieldOffset(Offset = "0x94")]
563 private int _firstTileY;
564
565 [global::Cpp2ILInjected.Token(Token = "0x4002092")]
566 [global::Cpp2ILInjected.FieldOffset(Offset = "0x98")]
567 private int _lastTileX;
568
569 [global::Cpp2ILInjected.Token(Token = "0x4002093")]
570 [global::Cpp2ILInjected.FieldOffset(Offset = "0x9C")]
571 private int _lastTileY;
572
573 [global::Cpp2ILInjected.Token(Token = "0x4002094")]
574 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA0")]
575 private bool _solidLayer;
576
577 [global::Cpp2ILInjected.Token(Token = "0x4002095")]
578 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA1")]
579 private bool _forRenderTargets;
580
581 [global::Cpp2ILInjected.Token(Token = "0x4002096")]
582 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA2")]
583 private bool _intoRenderTargets;
584
585 [global::Cpp2ILInjected.Token(Token = "0x4002097")]
586 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA4")]
588
589 [global::Cpp2ILInjected.Token(Token = "0x4002098")]
590 [global::Cpp2ILInjected.FieldOffset(Offset = "0xA8")]
591 private int _scannerTileX;
592
593 [global::Cpp2ILInjected.Token(Token = "0x4002099")]
594 [global::Cpp2ILInjected.FieldOffset(Offset = "0xAC")]
595 private int _scannerTileY;
596
597 [global::Cpp2ILInjected.Token(Token = "0x400209A")]
598 [global::Cpp2ILInjected.FieldOffset(Offset = "0xB0")]
600
601 [global::Cpp2ILInjected.Token(Token = "0x400209B")]
602 [global::Cpp2ILInjected.FieldOffset(Offset = "0xB8")]
603 private int _index;
604
605 [global::Cpp2ILInjected.Token(Token = "0x400209C")]
606 [global::Cpp2ILInjected.FieldOffset(Offset = "0xBC")]
607 private int _diff;
608
609 [global::Cpp2ILInjected.Token(Token = "0x400209D")]
610 [global::Cpp2ILInjected.FieldOffset(Offset = "0xC0")]
611 public bool Running;
612
613 [global::Cpp2ILInjected.Token(Token = "0x400209E")]
614 [global::Cpp2ILInjected.FieldOffset(Offset = "0xC8")]
616
617 [global::Cpp2ILInjected.Token(Token = "0x400209F")]
618 [global::Cpp2ILInjected.FieldOffset(Offset = "0xD0")]
620
621 [global::Cpp2ILInjected.Token(Token = "0x40020A0")]
622 [global::Cpp2ILInjected.FieldOffset(Offset = "0xD8")]
624
625 [global::Cpp2ILInjected.Token(Token = "0x40020A1")]
626 [global::Cpp2ILInjected.FieldOffset(Offset = "0xE0")]
628
629 [global::Cpp2ILInjected.Token(Token = "0x40020A2")]
630 [global::Cpp2ILInjected.FieldOffset(Offset = "0xE8")]
632
633 [global::Cpp2ILInjected.Token(Token = "0x40020A3")]
634 [global::Cpp2ILInjected.FieldOffset(Offset = "0xF0")]
636
637 [global::Cpp2ILInjected.Token(Token = "0x40020A4")]
638 [global::Cpp2ILInjected.FieldOffset(Offset = "0xF8")]
640
641 [global::Cpp2ILInjected.Token(Token = "0x20002DA")]
642 private enum DrawTask
643 {
644 [global::Cpp2ILInjected.Token(Token = "0x40020A6")]
645 None,
646 [global::Cpp2ILInjected.Token(Token = "0x40020A7")]
648 [global::Cpp2ILInjected.Token(Token = "0x40020A8")]
650 [global::Cpp2ILInjected.Token(Token = "0x40020A9")]
652 [global::Cpp2ILInjected.Token(Token = "0x40020AA")]
654 [global::Cpp2ILInjected.Token(Token = "0x40020AB")]
656 [global::Cpp2ILInjected.Token(Token = "0x40020AC")]
658 [global::Cpp2ILInjected.Token(Token = "0x40020AD")]
660 [global::Cpp2ILInjected.Token(Token = "0x40020AE")]
662 [global::Cpp2ILInjected.Token(Token = "0x40020AF")]
664 }
665 }
666}
class f__AnonymousType0<< Count > j__TPar
void BlurPass2(LightMap parent, int start, int end)
ThreadedRenderManager.RenderThreadInstance.DrawTask _task
void BlurPass1(LightMap parent, int start, int end)
void DrawCurrentBackground(int bgStartX, int bgstartY, int bgLoops, int byLoopsY, int diff, Microsoft.Xna.Framework.Vector2 drawOffset)
void DrawMagmaLayer(int bgStartX, int bgstartY, int bgLoops, int byLoopsY, int diff, Microsoft.Xna.Framework.Vector2 drawOffset)
void DrawRockLayer(int bgStartX, int bgstartY, int bgLoops, int byLoopsY, int diff, Microsoft.Xna.Framework.Vector2 drawOffset)
Microsoft.Xna.Framework.Vector2 _screenPosition
void DrawTiles(TileDrawing parent, Microsoft.Xna.Framework.Vector2 screenPosition, Microsoft.Xna.Framework.Vector2 offSet, int firstTileX, int firstTileY, int lastTileX, int lastTileY, bool solidLayer, bool forRenderTargets, bool intoRenderTargets, int waterStyleOverride=-1)
void ExportToMinimap(LightingEngine parent, int firstTileX, int firstTileY, int lastTileX, int lastTileY)
void ExportTo(TileLightScanner scanner, int startX, int startY, int endX, int endY, int lightStartX, int lightStartY, LightMap outputMap)
void DrawWalls(WallDrawing parent, Microsoft.Xna.Framework.Vector2 screenPosition, Microsoft.Xna.Framework.Vector2 offSet, int firstTileX, int firstTileY, int lastTileX, int lastTileY)
static string GetStackTrace(Thread t)
AutoResetEvent[][] WaitHandles
void WaitAndProcessInOrder(ThreadedRenderManager.BatchProcessCallback callback, int numberOfThreads)
ThreadedRenderManager.RenderThreadInstance[] DrawThreads
void WaitAndProcess(ThreadedRenderManager.BatchProcessCallback callback, int numberOfThreads)
static void GetTilePartition(int partitionIndex, int partitionCount, int firstTileX, int firstTileY, int lastTileX, int lastTileY, out int resultFirstTileX, out int resultFirstTileY, out int resultLastTileX, out int resultLastTileY)
delegate void BatchProcessCallback(int index)
static ThreadedRenderManager Instance