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
MapHelper.cs
Go to the documentation of this file.
1using System;
3using System.IO;
7using Ionic.Zlib;
10using Terraria.IO;
12
13namespace Terraria.Map
14{
15 // Token: 0x020006B3 RID: 1715
16 public static class MapHelper
17 {
18 // Token: 0x170006D9 RID: 1753
19 // (get) Token: 0x060038EC RID: 14572 RVA: 0x000021DB File Offset: 0x000003DB
20 private static object IOLock
21 {
22 get
23 {
24 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
25 }
26 }
27
28 // Token: 0x060038ED RID: 14573 RVA: 0x00226A6C File Offset: 0x00224C6C
29 public static void Initialize()
30 {
31 }
32
33 // Token: 0x060038EE RID: 14574 RVA: 0x0022B818 File Offset: 0x00229A18
34 public static void ResetMapData()
35 {
36 if (!true)
37 {
38 }
39 }
40
41 // Token: 0x060038EF RID: 14575 RVA: 0x0022B828 File Offset: 0x00229A28
42 public static bool HasOption(int tileType, int option)
43 {
44 /*
45An exception occurred when decompiling this method (060038EF)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Map.MapHelper::HasOption(System.Int32,System.Int32)
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 IL_0000:
52 brtrue(IL_0000, ldc.i4:bool(1))
53}
54
55 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
56 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
57 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
58 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
59 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
60 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
61 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
62 --- End of inner exception stack trace ---
63 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
64 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
65*/;
66 }
67
68 // Token: 0x060038F0 RID: 14576 RVA: 0x0022B838 File Offset: 0x00229A38
69 public static int TileToLookup(int tileType, int option)
70 {
71 /*
72An exception occurred when decompiling this method (060038F0)
73
74ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.Map.MapHelper::TileToLookup(System.Int32,System.Int32)
75
76 ---> System.Exception: Basic block has to end with unconditional control flow.
77{
78 IL_0000:
79 brtrue(IL_0000, ldc.i4:bool(1))
80}
81
82 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
83 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
84 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
85 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
86 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
87 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
88 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
89 --- End of inner exception stack trace ---
90 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
91 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
92*/;
93 }
94
95 // Token: 0x060038F1 RID: 14577 RVA: 0x0022B848 File Offset: 0x00229A48
96 public static int LookupCount()
97 {
98 /*
99An exception occurred when decompiling this method (060038F1)
100
101ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.Map.MapHelper::LookupCount()
102
103 ---> System.Exception: Basic block has to end with unconditional control flow.
104{
105 IL_0000:
106 brtrue(IL_0000, ldc.i4:bool(1))
107}
108
109 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
110 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
111 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
112 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
113 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
114 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
115 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
116 --- End of inner exception stack trace ---
117 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
118 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
119*/;
120 }
121
122 // Token: 0x060038F2 RID: 14578 RVA: 0x0022B858 File Offset: 0x00229A58
123 public static void MapColor(ushort type, Color oldColor, byte colorType)
124 {
125 if (!true)
126 {
127 }
128 Color color = WorldGen.paintColor((int)colorType);
129 byte r = oldColor.R;
130 byte g = oldColor.G;
131 byte b = oldColor.B;
132 }
133
134 // Token: 0x060038F3 RID: 14579 RVA: 0x0022B8F8 File Offset: 0x00229AF8
135 public static Color GetMapTileXnaColor(MapTile tile)
136 {
137 /*
138An exception occurred when decompiling this method (060038F3)
139
140ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Color Terraria.Map.MapHelper::GetMapTileXnaColor(Terraria.Map.MapTile)
141
142 ---> System.Exception: Basic block has to end with unconditional control flow.
143{
144 IL_0003:
145 stloc:uint8(var_0_09, callgetter:uint8(MapTile::get_Color, ldloc:MapTile[exp:valuetype Terraria.Map.MapTile&](tile)))
146 stloc:uint8(var_1_10, ldfld:uint8(MapTile::Light, ldloc:MapTile[exp:valuetype Terraria.Map.MapTile&](tile)))
147 brtrue(IL_0000, ldc.i4:int32[exp:bool](17279))
148}
149
150 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
151 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
152 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
153 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
154 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
155 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
156 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
157 --- End of inner exception stack trace ---
158 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
159 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
160*/;
161 }
162
163 // Token: 0x060038F4 RID: 14580 RVA: 0x0022B91C File Offset: 0x00229B1C
164 public static MapTile CreateMapTile(int i, int j, byte Light)
165 {
166 if (!true)
167 {
168 }
169 WorldMap map = Main.Map;
170 int num = 100;
173 int num2;
174 int num3;
175 if (num == 0 && num == 0)
176 {
177 num2 = 255;
179 int <SnowTileCount>k__BackingField = sceneMetrics.<SnowTileCount>k__BackingField;
180 int <HoneyBlockCount>k__BackingField = sceneMetrics.<HoneyBlockCount>k__BackingField;
181 if (17279 == 0)
182 {
183 }
184 bool flag = WorldGen.IsThisAMushroomTree(<SnowTileCount>k__BackingField, 0);
185 num3 = 1;
186 if (num != 0)
187 {
188 goto IL_0098;
189 }
190 if (num == 0)
191 {
192 if (num != 0 || num != 0)
193 {
194 goto IL_0098;
195 }
196 while (num == 0)
197 {
198 }
199 }
200 }
201 if (num3 == 0)
202 {
203 }
204 long num4 = 0L;
205 IL_0098:
206 byte b;
207 return MapTile.Create((ushort)b, (byte)num2, (byte)num4);
208 }
209
210 // Token: 0x060038F5 RID: 14581 RVA: 0x0022B9E8 File Offset: 0x00229BE8
211 public static void GetTileBaseOption(int x, int y, int tileType, Tile tileCache, int baseOption)
212 {
213 }
214
215 // Token: 0x060038F6 RID: 14582 RVA: 0x0022BAF4 File Offset: 0x00229CF4
216 public static void GetTileBaseOption(int y, ushort tileType, int frameX, int frameY, int baseOption)
217 {
218 }
219
220 // Token: 0x060038F7 RID: 14583 RVA: 0x0022BBE4 File Offset: 0x00229DE4
221 public static void SaveMap(bool forceSave = false)
222 {
223 if (!true)
224 {
225 }
227 {
228 }
229 bool mapEnabled = Main.mapEnabled;
230 Thread.Sleep(0);
231 }
232
233 // Token: 0x060038F8 RID: 14584 RVA: 0x0022BC6C File Offset: 0x00229E6C
234 private static void InternalSaveMapCompressed()
235 {
236 if (!true)
237 {
238 }
239 bool isCloudSave = Main.ActivePlayerFileData._isCloudSave;
240 string playerPathName = Main.playerPathName;
241 int stringLength = Main.playerPathName._stringLength;
242 string text;
243 if (!isCloudSave)
244 {
245 if (stringLength == 0)
246 {
247 }
249 }
250 if (stringLength == 0)
251 {
252 }
253 string text3;
254 string text2 = text + text3;
255 }
256
257 // Token: 0x060038F9 RID: 14585 RVA: 0x0022BEA8 File Offset: 0x0022A0A8
258 private static void InternalSaveMap()
259 {
260 if (!true)
261 {
262 }
263 bool isCloudSave = Main.ActivePlayerFileData._isCloudSave;
264 string playerPathName = Main.playerPathName;
265 int stringLength = Main.playerPathName._stringLength;
266 string text;
267 if (!isCloudSave)
268 {
269 if (stringLength == 0)
270 {
271 }
273 }
274 if (stringLength == 0)
275 {
276 }
277 string text3;
278 string text2 = text + text3;
279 }
280
281 // Token: 0x060038FA RID: 14586 RVA: 0x0022C114 File Offset: 0x0022A314
286
287 // Token: 0x060038FB RID: 14587 RVA: 0x0022C130 File Offset: 0x0022A330
289 {
290 int num = 8;
291 if (num == 0)
292 {
293 }
294 if (num == 0)
295 {
296 }
297 int num2 = 32768;
298 string text2;
299 string text = text2 + " " + text2 + "%";
300 if (num2 == 0)
301 {
302 }
303 uint bitCountPerValue = compressionProfile.BitCountPerValue;
304 uint num3;
305 if (num3 != 0U)
306 {
307 uint bitCountForRunLengths = compressionProfile.BitCountForRunLengths;
308 uint num4;
309 if (num4 != 0U)
310 {
311 }
312 }
313 }
314
315 // Token: 0x060038FC RID: 14588 RVA: 0x0022C184 File Offset: 0x0022A384
317 {
318 }
319
320 // Token: 0x060038FD RID: 14589 RVA: 0x0022C1E4 File Offset: 0x0022A3E4
322 {
323 string text;
324 if (text == null)
325 {
326 }
327 }
328
329 // Token: 0x060038FE RID: 14590 RVA: 0x0022C270 File Offset: 0x0022A470
331 {
332 }
333
334 // Token: 0x060038FF RID: 14591 RVA: 0x0022C324 File Offset: 0x0022A524
336 {
337 }
338
339 // Token: 0x06003900 RID: 14592 RVA: 0x0022C440 File Offset: 0x0022A640
340 // Note: this type is marked as 'beforefieldinit'.
341 static MapHelper()
342 {
343 }
344
345 // Token: 0x04007968 RID: 31080
346 public static int maxUpdateTile;
347
348 // Token: 0x04007969 RID: 31081
349 public static int numUpdateTile;
350
351 // Token: 0x0400796A RID: 31082
352 public static short[] updateTileX;
353
354 // Token: 0x0400796B RID: 31083
355 public static short[] updateTileY;
356
357 // Token: 0x0400796C RID: 31084
358 public static bool noStatusText;
359
360 // Token: 0x0400796D RID: 31085
361 public const int drawLoopMilliseconds = 5;
362
363 // Token: 0x0400796E RID: 31086
364 public const int drawMapLoadingLoopMilliseconds = 30;
365
366 // Token: 0x0400796F RID: 31087
367 private const int HeaderEmpty = 0;
368
369 // Token: 0x04007970 RID: 31088
370 private const int HeaderTile = 1;
371
372 // Token: 0x04007971 RID: 31089
373 private const int HeaderWall = 2;
374
375 // Token: 0x04007972 RID: 31090
376 private const int HeaderWater = 3;
377
378 // Token: 0x04007973 RID: 31091
379 private const int HeaderLava = 4;
380
381 // Token: 0x04007974 RID: 31092
382 private const int HeaderHoney = 5;
383
384 // Token: 0x04007975 RID: 31093
385 private const int HeaderHeavenAndHell = 6;
386
387 // Token: 0x04007976 RID: 31094
388 private const int HeaderBackground = 7;
389
390 // Token: 0x04007977 RID: 31095
391 private const int Header2_ReadHeader3Bit = 1;
392
393 // Token: 0x04007978 RID: 31096
394 private const int Header2Color1 = 2;
395
396 // Token: 0x04007979 RID: 31097
397 private const int Header2Color2 = 4;
398
399 // Token: 0x0400797A RID: 31098
400 private const int Header2Color3 = 8;
401
402 // Token: 0x0400797B RID: 31099
403 private const int Header2Color4 = 16;
404
405 // Token: 0x0400797C RID: 31100
406 private const int Header2Color5 = 32;
407
408 // Token: 0x0400797D RID: 31101
409 private const int Header2ShimmerBit = 64;
410
411 // Token: 0x0400797E RID: 31102
412 private const int Header2_UnusedBit8 = 128;
413
414 // Token: 0x0400797F RID: 31103
415 private const int Header3_ReservedForHeader4Bit = 1;
416
417 // Token: 0x04007980 RID: 31104
418 private const int Header3_UnusudBit2 = 2;
419
420 // Token: 0x04007981 RID: 31105
421 private const int Header3_UnusudBit3 = 4;
422
423 // Token: 0x04007982 RID: 31106
424 private const int Header3_UnusudBit4 = 8;
425
426 // Token: 0x04007983 RID: 31107
427 private const int Header3_UnusudBit5 = 16;
428
429 // Token: 0x04007984 RID: 31108
430 private const int Header3_UnusudBit6 = 32;
431
432 // Token: 0x04007985 RID: 31109
433 private const int Header3_UnusudBit7 = 64;
434
435 // Token: 0x04007986 RID: 31110
436 private const int Header3_UnusudBit8 = 128;
437
438 // Token: 0x04007987 RID: 31111
439 public const int maxTileOptions = 12;
440
441 // Token: 0x04007988 RID: 31112
442 public const int maxWallOptions = 2;
443
444 // Token: 0x04007989 RID: 31113
445 public const int maxLiquidTypes = 4;
446
447 // Token: 0x0400798A RID: 31114
448 public const int maxSkyGradients = 256;
449
450 // Token: 0x0400798B RID: 31115
451 public const int maxDirtGradients = 256;
452
453 // Token: 0x0400798C RID: 31116
454 public const int maxRockGradients = 256;
455
456 // Token: 0x0400798D RID: 31117
457 public static int[] tileOptionCounts;
458
459 // Token: 0x0400798E RID: 31118
460 public static int[] wallOptionCounts;
461
462 // Token: 0x0400798F RID: 31119
463 public static ushort[] tileLookup;
464
465 // Token: 0x04007990 RID: 31120
466 public static ushort[] wallLookup;
467
468 // Token: 0x04007991 RID: 31121
469 private static ushort tilePosition;
470
471 // Token: 0x04007992 RID: 31122
472 public static ushort wallPosition;
473
474 // Token: 0x04007993 RID: 31123
475 public static ushort liquidPosition;
476
477 // Token: 0x04007994 RID: 31124
478 public static ushort skyPosition;
479
480 // Token: 0x04007995 RID: 31125
481 public static ushort dirtPosition;
482
483 // Token: 0x04007996 RID: 31126
484 public static ushort rockPosition;
485
486 // Token: 0x04007997 RID: 31127
487 public static ushort hellPosition;
488
489 // Token: 0x04007998 RID: 31128
490 public static Color[] colorLookup;
491
492 // Token: 0x04007999 RID: 31129
494
495 // Token: 0x0400799A RID: 31130
496 private static ushort wallRangeStart;
497
498 // Token: 0x0400799B RID: 31131
499 private static ushort wallRangeEnd;
500
501 // Token: 0x020006B4 RID: 1716
503 {
504 // Token: 0x06003901 RID: 14593 RVA: 0x0022C450 File Offset: 0x0022A650
519
520 // Token: 0x0400799C RID: 31132
522
523 // Token: 0x0400799D RID: 31133
525
526 // Token: 0x0400799E RID: 31134
528
529 // Token: 0x0400799F RID: 31135
531
532 // Token: 0x040079A0 RID: 31136
534 }
535
536 // Token: 0x020006B5 RID: 1717
537 private struct OldMapHelper
538 {
539 // Token: 0x06003902 RID: 14594 RVA: 0x000021DB File Offset: 0x000003DB
540 public bool active()
541 {
542 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
543 }
544
545 // Token: 0x06003903 RID: 14595 RVA: 0x000021DB File Offset: 0x000003DB
546 public bool water()
547 {
548 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
549 }
550
551 // Token: 0x06003904 RID: 14596 RVA: 0x000021DB File Offset: 0x000003DB
552 public bool lava()
553 {
554 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
555 }
556
557 // Token: 0x06003905 RID: 14597 RVA: 0x0022C498 File Offset: 0x0022A698
558 public bool honey()
559 {
560 /*
561An exception occurred when decompiling this method (06003905)
562
563ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Map.MapHelper/OldMapHelper::honey()
564
565 ---> System.Exception: Basic block has to end with unconditional control flow.
566{
567 Block_0:
568 stloc:uint8(var_0_06, ldfld:uint8(OldMapHelper::misc2, ldloc:valuetype Terraria.Map.MapHelper/OldMapHelper&(this)))
569}
570
571 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
572 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
573 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
574 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
575 --- End of inner exception stack trace ---
576 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
577 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
578*/;
579 }
580
581 // Token: 0x06003906 RID: 14598 RVA: 0x000021DB File Offset: 0x000003DB
582 public bool changed()
583 {
584 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
585 }
586
587 // Token: 0x06003907 RID: 14599 RVA: 0x000021DB File Offset: 0x000003DB
588 public bool wall()
589 {
590 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
591 }
592
593 // Token: 0x06003908 RID: 14600 RVA: 0x0022C4AC File Offset: 0x0022A6AC
594 public byte option()
595 {
596 /*
597An exception occurred when decompiling this method (06003908)
598
599ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte Terraria.Map.MapHelper/OldMapHelper::option()
600
601 ---> System.Exception: Basic block has to end with unconditional control flow.
602{
603 Block_0:
604 stloc:uint8(var_0_06, ldfld:uint8(OldMapHelper::misc2, ldloc:valuetype Terraria.Map.MapHelper/OldMapHelper&(this)))
605}
606
607 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
608 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
609 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
610 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
611 --- End of inner exception stack trace ---
612 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
613 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
614*/;
615 }
616
617 // Token: 0x06003909 RID: 14601 RVA: 0x0022C4C0 File Offset: 0x0022A6C0
618 public byte color()
619 {
620 /*
621An exception occurred when decompiling this method (06003909)
622
623ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte Terraria.Map.MapHelper/OldMapHelper::color()
624
625 ---> System.Exception: Basic block has to end with unconditional control flow.
626{
627 Block_0:
628 stloc:uint8(var_0_06, ldfld:uint8(OldMapHelper::misc2, ldloc:valuetype Terraria.Map.MapHelper/OldMapHelper&(this)))
629}
630
631 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
632 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
633 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
634 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
635 --- End of inner exception stack trace ---
636 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
637 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
638*/;
639 }
640
641 // Token: 0x040079A1 RID: 31137
642 public byte misc;
643
644 // Token: 0x040079A2 RID: 31138
645 public byte misc2;
646 }
647
648 // Token: 0x020006B6 RID: 1718
649 public class BitReader
650 {
651 // Token: 0x0600390A RID: 14602 RVA: 0x0022C4D4 File Offset: 0x0022A6D4
653 {
655 this.CurBit = 8U;
656 }
657
658 // Token: 0x0600390B RID: 14603 RVA: 0x0022C4F8 File Offset: 0x0022A6F8
659 public uint Read(uint bitCount)
660 {
661 /*
662An exception occurred when decompiling this method (0600390B)
663
664ICSharpCode.Decompiler.DecompilerException: Error decompiling System.UInt32 Terraria.Map.MapHelper/BitReader::Read(System.UInt32)
665
666 ---> System.Exception: Basic block has to end with unconditional control flow.
667{
668 Block_0:
669 stloc:uint32(var_1_0B, ldfld:uint32(BitReader::CurBit, ldloc:BitReader(this)))
670 stloc:Stream(var_2_12, ldfld:Stream(BitReader::InnerStream, ldloc:BitReader(this)))
671 stloc:int64(var_3_14, ldc.i4:int64(0))
672 stfld:uint8(BitReader::CurByteOfData, ldloc:BitReader(this), ldloc:Stream[exp:uint8](var_2_12))
673 stloc:uint32(var_4_24, call:uint32(Math::Min, conv.u4:uint32(ldc.i4:int32[exp:uint32](0)), ldloc:uint32(bitCount)))
674 stloc:uint32(var_5_2C, ldfld:uint32(BitReader::CurBit, ldloc:BitReader(this)))
675 stloc:uint8(var_6_34, ldfld:uint8(BitReader::CurByteOfData, ldloc:BitReader(this)))
676 stfld:uint32(BitReader::CurBit, ldloc:BitReader(this), ldloc:int64[exp:uint32](var_3_14))
677}
678
679 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
680 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
681 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
682 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
683 --- End of inner exception stack trace ---
684 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
685 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
686*/;
687 }
688
689 // Token: 0x040079A3 RID: 31139
691
692 // Token: 0x040079A4 RID: 31140
693 private byte CurByteOfData;
694
695 // Token: 0x040079A5 RID: 31141
696 private uint CurBit;
697 }
698
699 // Token: 0x020006B7 RID: 1719
701 private sealed class <>c__DisplayClass72_0
702 {
703 // Token: 0x0600390C RID: 14604 RVA: 0x0022C544 File Offset: 0x0022A744
705 {
706 }
707
708 // Token: 0x0600390D RID: 14605 RVA: 0x0022C558 File Offset: 0x0022A758
710 {
714 {
715 }
716 bool flag = Main.Map.UpdateLighting(x, y, (byte)compressedLightValue);
717 }
718
719 // Token: 0x040079A6 RID: 31142
721 }
722 }
723}
class f__AnonymousType0<< Count > j__TPar
static void Sleep(int millisecondsTimeout)
Definition Thread.cs:207
static FileMetadata Read(BinaryReader reader, FileType expectedType)
static Rectangle GetScanRegion()
Definition Lighting.cs:556
static SceneMetrics SceneMetrics
Definition Main.cs:1791
static string playerPathName
Definition Main.cs:5349
static WorldMap Map
Definition Main.cs:1875
static PlayerFileData ActivePlayerFileData
Definition Main.cs:2701
static bool mapEnabled
Definition Main.cs:1231
static int UnderworldLayer
Definition Main.cs:5133
RunLengthEncodingCompressionProfile(uint numBitsPerValue, uint bitCountForRunLengths)
Definition MapHelper.cs:505
static Dictionary< ushort, bool > snowLookup
Definition MapHelper.cs:493
static ushort rockPosition
Definition MapHelper.cs:484
static short[] updateTileY
Definition MapHelper.cs:355
const int drawLoopMilliseconds
Definition MapHelper.cs:361
static void LoadMapHeader(BinaryReader fileIO)
Definition MapHelper.cs:282
const int Header2_ReadHeader3Bit
Definition MapHelper.cs:391
static ushort dirtPosition
Definition MapHelper.cs:481
static ushort tilePosition
Definition MapHelper.cs:469
const int Header3_UnusudBit4
Definition MapHelper.cs:424
static bool noStatusText
Definition MapHelper.cs:358
static void LoadMapVersion2(BinaryReader fileIO, int release)
Definition MapHelper.cs:330
static void MapColor(ushort type, Color oldColor, byte colorType)
Definition MapHelper.cs:123
static Color[] colorLookup
Definition MapHelper.cs:490
const int Header3_UnusudBit3
Definition MapHelper.cs:421
const int HeaderBackground
Definition MapHelper.cs:388
static void LoadMapVersion1(BinaryReader fileIO, int release)
Definition MapHelper.cs:321
static MapTile CreateMapTile(int i, int j, byte Light)
Definition MapHelper.cs:164
const int Header3_UnusudBit5
Definition MapHelper.cs:427
const int Header2_UnusedBit8
Definition MapHelper.cs:412
static void ReadRunLengthEncodingData(MapHelper.RunLengthEncodingCompressionProfile compressionProfile, DeflateStream deflateStream, Action< int, int, uint > dataRead)
Definition MapHelper.cs:288
const int Header3_UnusudBit2
Definition MapHelper.cs:418
static void GetTileBaseOption(int x, int y, int tileType, Tile tileCache, int baseOption)
Definition MapHelper.cs:211
const int drawMapLoadingLoopMilliseconds
Definition MapHelper.cs:364
static object IOLock
Definition MapHelper.cs:21
const int maxDirtGradients
Definition MapHelper.cs:451
const int Header3_UnusudBit7
Definition MapHelper.cs:433
static int TileToLookup(int tileType, int option)
Definition MapHelper.cs:69
static void InternalSaveMap()
Definition MapHelper.cs:258
static int numUpdateTile
Definition MapHelper.cs:349
static int maxUpdateTile
Definition MapHelper.cs:346
static void GetTileBaseOption(int y, ushort tileType, int frameX, int frameY, int baseOption)
Definition MapHelper.cs:216
static ushort wallPosition
Definition MapHelper.cs:472
const int Header2ShimmerBit
Definition MapHelper.cs:409
static void ResetMapData()
Definition MapHelper.cs:34
static ushort[] wallLookup
Definition MapHelper.cs:466
const int maxSkyGradients
Definition MapHelper.cs:448
static void LoadMapWithUltraCompression(MemoryStream wholeStream, bool isLocalMap)
Definition MapHelper.cs:316
const int maxRockGradients
Definition MapHelper.cs:454
const int HeaderHeavenAndHell
Definition MapHelper.cs:385
static ushort wallRangeEnd
Definition MapHelper.cs:499
static int[] tileOptionCounts
Definition MapHelper.cs:457
static ushort[] tileLookup
Definition MapHelper.cs:463
static void Initialize()
Definition MapHelper.cs:29
static Color GetMapTileXnaColor(MapTile tile)
Definition MapHelper.cs:135
static ushort hellPosition
Definition MapHelper.cs:487
const int Header3_ReservedForHeader4Bit
Definition MapHelper.cs:415
static ushort skyPosition
Definition MapHelper.cs:478
static void SaveMap(bool forceSave=false)
Definition MapHelper.cs:221
static int LookupCount()
Definition MapHelper.cs:96
const int Header3_UnusudBit8
Definition MapHelper.cs:436
static ushort liquidPosition
Definition MapHelper.cs:475
const int Header3_UnusudBit6
Definition MapHelper.cs:430
static ushort wallRangeStart
Definition MapHelper.cs:496
static void LoadMapVersionCompressed(BinaryReader fileIO, int release)
Definition MapHelper.cs:335
static short[] updateTileX
Definition MapHelper.cs:352
static int[] wallOptionCounts
Definition MapHelper.cs:460
static bool HasOption(int tileType, int option)
Definition MapHelper.cs:42
static void InternalSaveMapCompressed()
Definition MapHelper.cs:234
static void CreateDirectory(string path)
static bool IsThisAMushroomTree(int i, int j)
static Color paintColor(int color)
Definition WorldGen.cs:8098
static MapTile Create(ushort type, byte light, byte color)
Definition MapTile.cs:132