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
MapHelper.cs
Go to the documentation of this file.
1using System;
4using System.IO;
9using Ionic.Zlib;
13using Terraria.IO;
15using UnityEngine;
16
17namespace Terraria.Map
18{
19 [global::Cpp2ILInjected.Token(Token = "0x20006B3")]
20 public static class MapHelper
21 {
22 [global::Cpp2ILInjected.Token(Token = "0x170006D9")]
23 private static object IOLock
24 {
25 [global::Cpp2ILInjected.Token(Token = "0x60038EC")]
26 [global::Cpp2ILInjected.Address(RVA = "0x143F564", Offset = "0x143F564", Length = "0x4C")]
27 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MapHelper), Member = "SaveMap", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
28 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
29 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
30 get
31 {
32 throw null;
33 }
34 }
35
36 [global::Cpp2ILInjected.Token(Token = "0x60038ED")]
37 [global::Cpp2ILInjected.Address(RVA = "0x14296B0", Offset = "0x14296B0", Length = "0xAD8C")]
38 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
39 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "Initialize_AlmostEverything", ReturnType = typeof(void))]
40 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
41 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Microsoft.Xna.Framework.Graphics.Color), Member = ".ctor", MemberParameters = new object[]
42 {
43 typeof(int),
44 typeof(int),
45 typeof(int)
46 }, ReturnType = typeof(void))]
47 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Microsoft.Xna.Framework.Graphics.Color), Member = "op_Equality", MemberParameters = new object[]
48 {
51 }, ReturnType = typeof(bool))]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<ushort, bool>), Member = ".ctor", ReturnType = typeof(void))]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<ushort, bool>), Member = "Add", MemberParameters = new object[]
54 {
55 typeof(ushort),
56 typeof(bool)
57 }, ReturnType = typeof(void))]
58 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Lang), Member = "BuildMapAtlas", ReturnType = typeof(void))]
59 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 59)]
60 public static void Initialize()
61 {
62 throw null;
63 }
64
65 [global::Cpp2ILInjected.Token(Token = "0x60038EE")]
66 [global::Cpp2ILInjected.Address(RVA = "0x143F5B0", Offset = "0x143F5B0", Length = "0x58")]
67 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "clearWorld", ReturnType = typeof(void))]
68 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
69 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
70 public static void ResetMapData()
71 {
72 throw null;
73 }
74
75 [global::Cpp2ILInjected.Token(Token = "0x60038EF")]
76 [global::Cpp2ILInjected.Address(RVA = "0x143F608", Offset = "0x143F608", Length = "0x78")]
77 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
78 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
79 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
80 public static bool HasOption(int tileType, int option)
81 {
82 throw null;
83 }
84
85 [global::Cpp2ILInjected.Token(Token = "0x60038F0")]
86 [global::Cpp2ILInjected.Address(RVA = "0x143F680", Offset = "0x143F680", Length = "0x74")]
87 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
88 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIAccessoryInfo), Member = "BuildInfoAccs", ReturnType = typeof(void))]
89 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUICraftGuidePopup), Member = "UpdateText", ReturnType = typeof(void))]
90 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Lang), Member = "BuildMapAtlas", ReturnType = typeof(void))]
91 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 412)]
92 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
93 public static int TileToLookup(int tileType, int option)
94 {
95 throw null;
96 }
97
98 [global::Cpp2ILInjected.Token(Token = "0x60038F1")]
99 [global::Cpp2ILInjected.Address(RVA = "0x143F6F4", Offset = "0x143F6F4", Length = "0x5C")]
100 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Lang), Member = "BuildMapAtlas", ReturnType = typeof(void))]
101 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
102 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
103 public static int LookupCount()
104 {
105 throw null;
106 }
107
108 [global::Cpp2ILInjected.Token(Token = "0x60038F2")]
109 [global::Cpp2ILInjected.Address(RVA = "0x143F750", Offset = "0x143F750", Length = "0x1F8")]
110 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
111 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIMap), Member = "DrawToMap", ReturnType = typeof(void))]
112 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIMap), Member = "ApplySection", MemberParameters = new object[]
113 {
114 typeof(int),
115 typeof(int),
116 typeof(int),
117 typeof(int)
118 }, ReturnType = typeof(void))]
119 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIMap), Member = "DrawToMap_Section", MemberParameters = new object[]
120 {
121 typeof(int),
122 typeof(int)
123 }, ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MapHelper), Member = "GetMapTileXnaColor", MemberParameters = new object[] { typeof(ref MapTile) }, ReturnType = typeof(Microsoft.Xna.Framework.Graphics.Color))]
125 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
126 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "paintColor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(Microsoft.Xna.Framework.Graphics.Color))]
127 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
128 public static void MapColor(ushort type, ref Microsoft.Xna.Framework.Graphics.Color oldColor, byte colorType)
129 {
130 throw null;
131 }
132
133 [global::Cpp2ILInjected.Token(Token = "0x60038F3")]
134 [global::Cpp2ILInjected.Address(RVA = "0x143F948", Offset = "0x143F948", Length = "0x170")]
135 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
136 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIMap), Member = "DrawToMap", ReturnType = typeof(void))]
137 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
138 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapTile), Member = "get_Color", ReturnType = typeof(byte))]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapHelper), Member = "MapColor", MemberParameters = new object[]
140 {
141 typeof(ushort),
143 typeof(byte)
144 }, ReturnType = typeof(void))]
145 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
147 {
148 throw null;
149 }
150
151 [global::Cpp2ILInjected.Token(Token = "0x60038F4")]
152 [global::Cpp2ILInjected.Address(RVA = "0x143FAB8", Offset = "0x143FAB8", Length = "0x808")]
153 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
154 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldMap), Member = "Update", MemberParameters = new object[]
155 {
156 typeof(int),
157 typeof(int),
158 typeof(byte)
159 }, ReturnType = typeof(void))]
160 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldMap), Member = "UpdateLighting", MemberParameters = new object[]
161 {
162 typeof(int),
163 typeof(int),
164 typeof(byte)
165 }, ReturnType = typeof(bool))]
166 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldMap), Member = "UpdateType", MemberParameters = new object[]
167 {
168 typeof(int),
169 typeof(int)
170 }, ReturnType = typeof(bool))]
171 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
172 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
173 {
174 typeof(int),
175 typeof(int)
176 }, ReturnType = typeof(Tile))]
177 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_Map", ReturnType = typeof(WorldMap))]
178 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMap), Member = "GetChunkTile", MemberParameters = new object[]
179 {
180 typeof(int),
181 typeof(int),
182 typeof(ref WorldMapChunk)
183 }, ReturnType = typeof(MapTile*))]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", ReturnType = typeof(bool))]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
186 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "invisibleBlock", ReturnType = typeof(bool))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "fullbrightBlock", ReturnType = typeof(bool))]
188 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "invisibleWall", ReturnType = typeof(bool))]
189 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_wall", ReturnType = typeof(ushort))]
190 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "fullbrightWall", ReturnType = typeof(bool))]
191 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_liquid", ReturnType = typeof(byte))]
192 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "wallColor", ReturnType = typeof(byte))]
193 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "liquidType", ReturnType = typeof(byte))]
194 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_UnderworldLayer", ReturnType = typeof(int))]
195 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Lighting), Member = "GetScanRegion", ReturnType = typeof(Rectangle))]
196 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameY", ReturnType = typeof(short))]
197 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
198 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_SceneMetrics", ReturnType = typeof(SceneMetrics))]
199 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "IsThisAMushroomTree", MemberParameters = new object[]
200 {
201 typeof(int),
202 typeof(int)
203 }, ReturnType = typeof(bool))]
204 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "color", ReturnType = typeof(byte))]
205 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapHelper), Member = "GetTileBaseOption", MemberParameters = new object[]
206 {
207 typeof(int),
208 typeof(int),
209 typeof(int),
210 typeof(Tile),
211 typeof(ref int)
212 }, ReturnType = typeof(void))]
213 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapTile), Member = "Create", MemberParameters = new object[]
214 {
215 typeof(ushort),
216 typeof(byte),
217 typeof(byte)
218 }, ReturnType = typeof(MapTile))]
219 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<ushort, bool>), Member = "TryGetValue", MemberParameters = new object[]
220 {
221 typeof(ushort),
222 typeof(ref bool)
223 }, ReturnType = typeof(bool))]
224 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 29)]
225 public unsafe static MapTile CreateMapTile(int i, int j, byte Light)
226 {
227 throw null;
228 }
229
230 [global::Cpp2ILInjected.Token(Token = "0x60038F5")]
231 [global::Cpp2ILInjected.Address(RVA = "0x14402C0", Offset = "0x14402C0", Length = "0x1434")]
232 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
233 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIAccessoryInfo), Member = "BuildInfoAccs", ReturnType = typeof(void))]
234 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MapHelper), Member = "CreateMapTile", MemberParameters = new object[]
235 {
236 typeof(int),
237 typeof(int),
238 typeof(byte)
239 }, ReturnType = typeof(MapTile))]
240 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
241 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameX", ReturnType = typeof(short))]
242 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameY", ReturnType = typeof(short))]
243 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
244 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player), Member = "get_ZoneCorrupt", ReturnType = typeof(bool))]
245 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player), Member = "get_ZoneCrimson", ReturnType = typeof(bool))]
246 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player), Member = "get_ZoneHallow", ReturnType = typeof(bool))]
247 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "GetBiomeInfluence", MemberParameters = new object[]
248 {
249 typeof(int),
250 typeof(int),
251 typeof(int),
252 typeof(int),
253 typeof(ref int),
254 typeof(ref int),
255 typeof(ref int)
256 }, ReturnType = typeof(void))]
257 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "GetCactusType", MemberParameters = new object[]
258 {
259 typeof(int),
260 typeof(int),
261 typeof(int),
262 typeof(int),
263 typeof(ref bool),
264 typeof(ref bool),
265 typeof(ref bool)
266 }, ReturnType = typeof(void))]
267 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 17)]
268 public static void GetTileBaseOption(int x, int y, int tileType, Tile tileCache, ref int baseOption)
269 {
270 throw null;
271 }
272
273 [global::Cpp2ILInjected.Token(Token = "0x60038F6")]
274 [global::Cpp2ILInjected.Address(RVA = "0x14416F4", Offset = "0x14416F4", Length = "0xAAC")]
275 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
276 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "ExportToMiniMap", ReturnType = typeof(void))]
277 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LightingEngine), Member = "ExportToMiniMap", MemberParameters = new object[]
278 {
279 typeof(int),
280 typeof(int),
281 typeof(int),
282 typeof(int)
283 }, ReturnType = typeof(void))]
284 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
285 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
286 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player), Member = "get_ZoneCorrupt", ReturnType = typeof(bool))]
287 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player), Member = "get_ZoneCrimson", ReturnType = typeof(bool))]
288 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Player), Member = "get_ZoneHallow", ReturnType = typeof(bool))]
289 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
290 public static void GetTileBaseOption(int y, ushort tileType, int frameX, int frameY, ref int baseOption)
291 {
292 throw null;
293 }
294
295 [global::Cpp2ILInjected.Token(Token = "0x60038F7")]
296 [global::Cpp2ILInjected.Address(RVA = "0x14421A0", Offset = "0x14421A0", Length = "0x364")]
297 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
298 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldMap), Member = "Save", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
299 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
300 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_ActivePlayerFileData", ReturnType = typeof(PlayerFileData))]
301 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_mapEnabled", ReturnType = typeof(bool))]
302 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
303 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
304 {
305 typeof(string),
306 typeof(string),
307 typeof(string),
308 typeof(string)
309 }, ReturnType = typeof(string))]
310 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Thread), Member = "Sleep", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
311 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapHelper), Member = "get_IOLock", ReturnType = typeof(object))]
312 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "TryEnter", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(bool))]
313 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapHelper), Member = "InternalSaveMapCompressed", ReturnType = typeof(void))]
314 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
315 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "LogError", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
316 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 34)]
317 public static void SaveMap(bool forceSave = false)
318 {
319 throw null;
320 }
321
322 [global::Cpp2ILInjected.Token(Token = "0x60038F8")]
323 [global::Cpp2ILInjected.Address(RVA = "0x1442504", Offset = "0x1442504", Length = "0xDEC")]
324 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
325 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MapHelper), Member = "SaveMap", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
326 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
327 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_ActivePlayerFileData", ReturnType = typeof(PlayerFileData))]
328 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_playerPathName", ReturnType = typeof(string))]
329 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Substring", MemberParameters = new object[]
330 {
331 typeof(int),
332 typeof(int)
333 }, ReturnType = typeof(string))]
334 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileUtilities), Member = "CreateDirectory", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
335 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(char), Member = "ToString", ReturnType = typeof(string))]
336 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
337 {
338 typeof(string),
339 typeof(string)
340 }, ReturnType = typeof(string))]
341 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldFileData), Member = "get_UseGuidAsMapName", ReturnType = typeof(bool))]
342 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Guid), Member = "ToString", ReturnType = typeof(string))]
343 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
344 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
345 {
346 typeof(string),
347 typeof(string),
348 typeof(string)
349 }, ReturnType = typeof(string))]
350 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = ".ctor", ReturnType = typeof(void))]
351 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = "Start", ReturnType = typeof(void))]
352 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_gameMenu", ReturnType = typeof(bool))]
353 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MemoryStream), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
354 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BinaryWriter), Member = ".ctor", MemberParameters = new object[] { typeof(Stream) }, ReturnType = typeof(void))]
355 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_MapFileMetadata", ReturnType = typeof(FileMetadata))]
356 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileMetadata), Member = "IncrementAndWrite", MemberParameters = new object[] { typeof(BinaryWriter) }, ReturnType = typeof(void))]
357 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_Map", ReturnType = typeof(WorldMap))]
358 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
359 {
360 typeof(string),
361 typeof(string),
362 typeof(string),
363 typeof(string)
364 }, ReturnType = typeof(string))]
365 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
366 {
367 typeof(object),
368 typeof(ref bool)
369 }, ReturnType = typeof(void))]
370 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMapChunk), Member = "SaveCompressed", ReturnType = typeof(void))]
371 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
372 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileUtilities), Member = "WriteAllBytes", MemberParameters = new object[]
373 {
374 typeof(string),
375 typeof(byte[]),
376 typeof(bool)
377 }, ReturnType = typeof(void))]
378 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 70)]
379 private static void InternalSaveMapCompressed()
380 {
381 throw null;
382 }
383
384 [global::Cpp2ILInjected.Token(Token = "0x60038F9")]
385 [global::Cpp2ILInjected.Address(RVA = "0x14432F0", Offset = "0x14432F0", Length = "0x15A8")]
386 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
387 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
388 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_ActivePlayerFileData", ReturnType = typeof(PlayerFileData))]
389 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_playerPathName", ReturnType = typeof(string))]
390 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Substring", MemberParameters = new object[]
391 {
392 typeof(int),
393 typeof(int)
394 }, ReturnType = typeof(string))]
395 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileUtilities), Member = "CreateDirectory", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
396 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(char), Member = "ToString", ReturnType = typeof(string))]
397 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
398 {
399 typeof(string),
400 typeof(string)
401 }, ReturnType = typeof(string))]
402 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldFileData), Member = "get_UseGuidAsMapName", ReturnType = typeof(bool))]
403 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Guid), Member = "ToString", ReturnType = typeof(string))]
404 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
405 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
406 {
407 typeof(string),
408 typeof(string),
409 typeof(string)
410 }, ReturnType = typeof(string))]
411 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = ".ctor", ReturnType = typeof(void))]
412 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = "Start", ReturnType = typeof(void))]
413 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_gameMenu", ReturnType = typeof(bool))]
414 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MemoryStream), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
415 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BinaryWriter), Member = ".ctor", MemberParameters = new object[] { typeof(Stream) }, ReturnType = typeof(void))]
416 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(DeflateStream), Member = ".ctor", MemberParameters = new object[]
417 {
418 typeof(Stream),
420 }, ReturnType = typeof(void))]
421 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_MapFileMetadata", ReturnType = typeof(FileMetadata))]
422 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileMetadata), Member = "IncrementAndWrite", MemberParameters = new object[] { typeof(BinaryWriter) }, ReturnType = typeof(void))]
423 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_Map", ReturnType = typeof(WorldMap))]
424 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
425 {
426 typeof(string),
427 typeof(string),
428 typeof(string),
429 typeof(string)
430 }, ReturnType = typeof(string))]
431 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMap), Member = "GetChunkTile", MemberParameters = new object[]
432 {
433 typeof(int),
434 typeof(int),
435 typeof(bool),
436 typeof(ref WorldMapChunk)
437 }, ReturnType = typeof(MapTile*))]
438 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stream), Member = "Dispose", ReturnType = typeof(void))]
439 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileUtilities), Member = "WriteAllBytes", MemberParameters = new object[]
440 {
441 typeof(string),
442 typeof(byte[]),
443 typeof(bool)
444 }, ReturnType = typeof(void))]
445 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 81)]
446 private unsafe static void InternalSaveMap()
447 {
448 throw null;
449 }
450
451 [global::Cpp2ILInjected.Token(Token = "0x60038FA")]
452 [global::Cpp2ILInjected.Address(RVA = "0x1444898", Offset = "0x1444898", Length = "0x1A4")]
453 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
454 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MapHelper), Member = "LoadMapWithUltraCompression", MemberParameters = new object[]
455 {
457 typeof(bool)
458 }, ReturnType = typeof(void))]
459 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
460 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileMetadata), Member = "Read", MemberParameters = new object[]
461 {
464 }, ReturnType = typeof(FileMetadata))]
465 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_MapFileMetadata", MemberParameters = new object[] { typeof(FileMetadata) }, ReturnType = typeof(void))]
466 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Inequality", MemberParameters = new object[]
467 {
468 typeof(string),
469 typeof(string)
470 }, ReturnType = typeof(bool))]
471 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Exception), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
472 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
473 private static void LoadMapHeader(BinaryReader fileIO)
474 {
475 throw null;
476 }
477
478 [global::Cpp2ILInjected.Token(Token = "0x60038FB")]
479 [global::Cpp2ILInjected.Address(RVA = "0x1444A3C", Offset = "0x1444A3C", Length = "0x2D0")]
480 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
481 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MapHelper), Member = "LoadMapWithUltraCompression", MemberParameters = new object[]
482 {
484 typeof(bool)
485 }, ReturnType = typeof(void))]
486 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
487 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
488 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
489 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
490 {
491 typeof(string),
492 typeof(string),
493 typeof(string),
494 typeof(string)
495 }, ReturnType = typeof(string))]
496 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapHelper.BitReader), Member = "Read", MemberParameters = new object[] { typeof(uint) }, ReturnType = typeof(uint))]
497 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
502
503 [global::Cpp2ILInjected.Token(Token = "0x60038FC")]
504 [global::Cpp2ILInjected.Address(RVA = "0x1444E70", Offset = "0x1444E70", Length = "0x3F0")]
505 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
506 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldMap), Member = "Load", ReturnType = typeof(void))]
507 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
508 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(DeflateStream), Member = ".ctor", MemberParameters = new object[]
509 {
510 typeof(Stream),
512 }, ReturnType = typeof(void))]
513 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BinaryReader), Member = ".ctor", MemberParameters = new object[] { typeof(Stream) }, ReturnType = typeof(void))]
514 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
515 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapHelper), Member = "LoadMapHeader", MemberParameters = new object[] { typeof(BinaryReader) }, ReturnType = typeof(void))]
516 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapHelper.RunLengthEncodingCompressionProfile), Member = ".ctor", MemberParameters = new object[]
517 {
518 typeof(uint),
519 typeof(uint)
520 }, ReturnType = typeof(void))]
521 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Action<, , >), Member = ".ctor", MemberParameters = new object[]
522 {
523 typeof(object),
525 }, ReturnType = typeof(void))]
526 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapHelper), Member = "ReadRunLengthEncodingData", MemberParameters = new object[]
527 {
528 typeof(MapHelper.RunLengthEncodingCompressionProfile),
530 typeof(Action<int, int, uint>)
531 }, ReturnType = typeof(void))]
532 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 28)]
534 {
535 throw null;
536 }
537
538 [global::Cpp2ILInjected.Token(Token = "0x60038FD")]
539 [global::Cpp2ILInjected.Address(RVA = "0x1445348", Offset = "0x1445348", Length = "0x900")]
540 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
541 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldMap), Member = "Load", ReturnType = typeof(void))]
542 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
543 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Inequality", MemberParameters = new object[]
544 {
545 typeof(string),
546 typeof(string)
547 }, ReturnType = typeof(bool))]
548 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
549 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
550 {
551 typeof(string),
552 typeof(string),
553 typeof(string),
554 typeof(string)
555 }, ReturnType = typeof(string))]
556 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MapTile), Member = "Create", MemberParameters = new object[]
557 {
558 typeof(ushort),
559 typeof(byte),
560 typeof(byte)
561 }, ReturnType = typeof(MapTile))]
562 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_Map", ReturnType = typeof(WorldMap))]
563 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMap), Member = "SetTile", MemberParameters = new object[]
564 {
565 typeof(int),
566 typeof(int),
567 typeof(ref MapTile)
568 }, ReturnType = typeof(void))]
569 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_UnderworldLayer", ReturnType = typeof(int))]
570 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Exception), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
571 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 45)]
573 {
574 throw null;
575 }
576
577 [global::Cpp2ILInjected.Token(Token = "0x60038FE")]
578 [global::Cpp2ILInjected.Address(RVA = "0x1445CAC", Offset = "0x1445CAC", Length = "0xD80")]
579 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
580 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldMap), Member = "Load", ReturnType = typeof(void))]
581 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
582 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileMetadata), Member = "FromCurrentSettings", MemberParameters = new object[] { typeof(FileType) }, ReturnType = typeof(FileMetadata))]
583 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileMetadata), Member = "Read", MemberParameters = new object[]
584 {
587 }, ReturnType = typeof(FileMetadata))]
588 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_MapFileMetadata", MemberParameters = new object[] { typeof(FileMetadata) }, ReturnType = typeof(void))]
589 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(DateTime), Member = "get_Now", ReturnType = typeof(DateTime))]
590 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(DeflateStream), Member = ".ctor", MemberParameters = new object[]
591 {
592 typeof(Stream),
594 }, ReturnType = typeof(void))]
595 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BinaryReader), Member = ".ctor", MemberParameters = new object[] { typeof(Stream) }, ReturnType = typeof(void))]
596 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_Map", ReturnType = typeof(WorldMap))]
597 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
598 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
599 {
600 typeof(string),
601 typeof(string),
602 typeof(string),
603 typeof(string)
604 }, ReturnType = typeof(string))]
605 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMap), Member = "GetChunkTile", MemberParameters = new object[]
606 {
607 typeof(int),
608 typeof(int),
609 typeof(bool),
610 typeof(ref WorldMapChunk)
611 }, ReturnType = typeof(MapTile*))]
612 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(DateTime), Member = "op_Subtraction", MemberParameters = new object[]
613 {
616 }, ReturnType = typeof(TimeSpan))]
617 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TimeSpan), Member = "get_TotalSeconds", ReturnType = typeof(double))]
618 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
619 {
620 typeof(string),
621 typeof(object)
622 }, ReturnType = typeof(string))]
623 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "Log", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
624 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Exception), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
625 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 48)]
627 {
628 throw null;
629 }
630
631 [global::Cpp2ILInjected.Token(Token = "0x60038FF")]
632 [global::Cpp2ILInjected.Address(RVA = "0x1446A2C", Offset = "0x1446A2C", Length = "0xB10")]
633 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
634 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldMap), Member = "Load", ReturnType = typeof(void))]
635 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
636 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileMetadata), Member = "FromCurrentSettings", MemberParameters = new object[] { typeof(FileType) }, ReturnType = typeof(FileMetadata))]
637 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FileMetadata), Member = "Read", MemberParameters = new object[]
638 {
641 }, ReturnType = typeof(FileMetadata))]
642 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_MapFileMetadata", MemberParameters = new object[] { typeof(FileMetadata) }, ReturnType = typeof(void))]
643 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(DateTime), Member = "get_Now", ReturnType = typeof(DateTime))]
644 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_Map", ReturnType = typeof(WorldMap))]
645 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int), Member = "ToString", ReturnType = typeof(string))]
646 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
647 {
648 typeof(string),
649 typeof(string),
650 typeof(string),
651 typeof(string)
652 }, ReturnType = typeof(string))]
653 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMapChunk), Member = "LoadTiles", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
654 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMapChunk), Member = "SaveCompressed", ReturnType = typeof(void))]
655 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMap), Member = "ReleaseTileStorage", MemberParameters = new object[] { typeof(WorldMapChunk) }, ReturnType = typeof(void))]
656 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(DateTime), Member = "op_Subtraction", MemberParameters = new object[]
657 {
660 }, ReturnType = typeof(TimeSpan))]
661 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TimeSpan), Member = "get_TotalSeconds", ReturnType = typeof(double))]
662 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
663 {
664 typeof(string),
665 typeof(object)
666 }, ReturnType = typeof(string))]
667 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "Log", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
668 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Exception), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
669 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 46)]
671 {
672 throw null;
673 }
674
675 // Note: this type is marked as 'beforefieldinit'.
676 [global::Cpp2ILInjected.Token(Token = "0x6003900")]
677 [global::Cpp2ILInjected.Address(RVA = "0x144753C", Offset = "0x144753C", Length = "0x98")]
678 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
679 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
680 static MapHelper()
681 {
682 throw null;
683 }
684
685 [global::Cpp2ILInjected.Token(Token = "0x4007968")]
686 public static int maxUpdateTile;
687
688 [global::Cpp2ILInjected.Token(Token = "0x4007969")]
689 public static int numUpdateTile;
690
691 [global::Cpp2ILInjected.Token(Token = "0x400796A")]
692 public static short[] updateTileX;
693
694 [global::Cpp2ILInjected.Token(Token = "0x400796B")]
695 public static short[] updateTileY;
696
697 [global::Cpp2ILInjected.Token(Token = "0x400796C")]
698 public static bool noStatusText;
699
700 [global::Cpp2ILInjected.Token(Token = "0x400796D")]
701 public const int drawLoopMilliseconds = 5;
702
703 [global::Cpp2ILInjected.Token(Token = "0x400796E")]
704 public const int drawMapLoadingLoopMilliseconds = 30;
705
706 [global::Cpp2ILInjected.Token(Token = "0x400796F")]
707 private const int HeaderEmpty = 0;
708
709 [global::Cpp2ILInjected.Token(Token = "0x4007970")]
710 private const int HeaderTile = 1;
711
712 [global::Cpp2ILInjected.Token(Token = "0x4007971")]
713 private const int HeaderWall = 2;
714
715 [global::Cpp2ILInjected.Token(Token = "0x4007972")]
716 private const int HeaderWater = 3;
717
718 [global::Cpp2ILInjected.Token(Token = "0x4007973")]
719 private const int HeaderLava = 4;
720
721 [global::Cpp2ILInjected.Token(Token = "0x4007974")]
722 private const int HeaderHoney = 5;
723
724 [global::Cpp2ILInjected.Token(Token = "0x4007975")]
725 private const int HeaderHeavenAndHell = 6;
726
727 [global::Cpp2ILInjected.Token(Token = "0x4007976")]
728 private const int HeaderBackground = 7;
729
730 [global::Cpp2ILInjected.Token(Token = "0x4007977")]
731 private const int Header2_ReadHeader3Bit = 1;
732
733 [global::Cpp2ILInjected.Token(Token = "0x4007978")]
734 private const int Header2Color1 = 2;
735
736 [global::Cpp2ILInjected.Token(Token = "0x4007979")]
737 private const int Header2Color2 = 4;
738
739 [global::Cpp2ILInjected.Token(Token = "0x400797A")]
740 private const int Header2Color3 = 8;
741
742 [global::Cpp2ILInjected.Token(Token = "0x400797B")]
743 private const int Header2Color4 = 16;
744
745 [global::Cpp2ILInjected.Token(Token = "0x400797C")]
746 private const int Header2Color5 = 32;
747
748 [global::Cpp2ILInjected.Token(Token = "0x400797D")]
749 private const int Header2ShimmerBit = 64;
750
751 [global::Cpp2ILInjected.Token(Token = "0x400797E")]
752 private const int Header2_UnusedBit8 = 128;
753
754 [global::Cpp2ILInjected.Token(Token = "0x400797F")]
755 private const int Header3_ReservedForHeader4Bit = 1;
756
757 [global::Cpp2ILInjected.Token(Token = "0x4007980")]
758 private const int Header3_UnusudBit2 = 2;
759
760 [global::Cpp2ILInjected.Token(Token = "0x4007981")]
761 private const int Header3_UnusudBit3 = 4;
762
763 [global::Cpp2ILInjected.Token(Token = "0x4007982")]
764 private const int Header3_UnusudBit4 = 8;
765
766 [global::Cpp2ILInjected.Token(Token = "0x4007983")]
767 private const int Header3_UnusudBit5 = 16;
768
769 [global::Cpp2ILInjected.Token(Token = "0x4007984")]
770 private const int Header3_UnusudBit6 = 32;
771
772 [global::Cpp2ILInjected.Token(Token = "0x4007985")]
773 private const int Header3_UnusudBit7 = 64;
774
775 [global::Cpp2ILInjected.Token(Token = "0x4007986")]
776 private const int Header3_UnusudBit8 = 128;
777
778 [global::Cpp2ILInjected.Token(Token = "0x4007987")]
779 public const int maxTileOptions = 12;
780
781 [global::Cpp2ILInjected.Token(Token = "0x4007988")]
782 public const int maxWallOptions = 2;
783
784 [global::Cpp2ILInjected.Token(Token = "0x4007989")]
785 public const int maxLiquidTypes = 4;
786
787 [global::Cpp2ILInjected.Token(Token = "0x400798A")]
788 public const int maxSkyGradients = 256;
789
790 [global::Cpp2ILInjected.Token(Token = "0x400798B")]
791 public const int maxDirtGradients = 256;
792
793 [global::Cpp2ILInjected.Token(Token = "0x400798C")]
794 public const int maxRockGradients = 256;
795
796 [global::Cpp2ILInjected.Token(Token = "0x400798D")]
797 public static int[] tileOptionCounts;
798
799 [global::Cpp2ILInjected.Token(Token = "0x400798E")]
800 public static int[] wallOptionCounts;
801
802 [global::Cpp2ILInjected.Token(Token = "0x400798F")]
803 public static ushort[] tileLookup;
804
805 [global::Cpp2ILInjected.Token(Token = "0x4007990")]
806 public static ushort[] wallLookup;
807
808 [global::Cpp2ILInjected.Token(Token = "0x4007991")]
809 private static ushort tilePosition;
810
811 [global::Cpp2ILInjected.Token(Token = "0x4007992")]
812 public static ushort wallPosition;
813
814 [global::Cpp2ILInjected.Token(Token = "0x4007993")]
815 public static ushort liquidPosition;
816
817 [global::Cpp2ILInjected.Token(Token = "0x4007994")]
818 public static ushort skyPosition;
819
820 [global::Cpp2ILInjected.Token(Token = "0x4007995")]
821 public static ushort dirtPosition;
822
823 [global::Cpp2ILInjected.Token(Token = "0x4007996")]
824 public static ushort rockPosition;
825
826 [global::Cpp2ILInjected.Token(Token = "0x4007997")]
827 public static ushort hellPosition;
828
829 [global::Cpp2ILInjected.Token(Token = "0x4007998")]
831
832 [global::Cpp2ILInjected.Token(Token = "0x4007999")]
834
835 [global::Cpp2ILInjected.Token(Token = "0x400799A")]
836 private static ushort wallRangeStart;
837
838 [global::Cpp2ILInjected.Token(Token = "0x400799B")]
839 private static ushort wallRangeEnd;
840
841 [global::Cpp2ILInjected.Token(Token = "0x20006B4")]
843 {
844 [global::Cpp2ILInjected.Token(Token = "0x6003901")]
845 [global::Cpp2ILInjected.Address(RVA = "0x1445268", Offset = "0x1445268", Length = "0xE0")]
846 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
847 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MapHelper), Member = "LoadMapWithUltraCompression", MemberParameters = new object[]
848 {
850 typeof(bool)
851 }, ReturnType = typeof(void))]
852 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
853 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
854 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Pow", MemberParameters = new object[]
855 {
856 typeof(double),
857 typeof(double)
858 }, ReturnType = typeof(double))]
859 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
861 {
862 throw null;
863 }
864
865 [global::Cpp2ILInjected.Token(Token = "0x400799C")]
866 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
868
869 [global::Cpp2ILInjected.Token(Token = "0x400799D")]
870 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
872
873 [global::Cpp2ILInjected.Token(Token = "0x400799E")]
874 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
876
877 [global::Cpp2ILInjected.Token(Token = "0x400799F")]
878 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1C")]
880
881 [global::Cpp2ILInjected.Token(Token = "0x40079A0")]
882 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
884 }
885
886 [global::Cpp2ILInjected.Token(Token = "0x20006B5")]
887 private struct OldMapHelper
888 {
889 [global::Cpp2ILInjected.Token(Token = "0x6003902")]
890 [global::Cpp2ILInjected.Address(RVA = "0x1445C70", Offset = "0x1445C70", Length = "0xC")]
891 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
892 public bool active()
893 {
894 throw null;
895 }
896
897 [global::Cpp2ILInjected.Token(Token = "0x6003903")]
898 [global::Cpp2ILInjected.Address(RVA = "0x1445C7C", Offset = "0x1445C7C", Length = "0xC")]
899 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
900 public bool water()
901 {
902 throw null;
903 }
904
905 [global::Cpp2ILInjected.Token(Token = "0x6003904")]
906 [global::Cpp2ILInjected.Address(RVA = "0x1445C88", Offset = "0x1445C88", Length = "0xC")]
907 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
908 public bool lava()
909 {
910 throw null;
911 }
912
913 [global::Cpp2ILInjected.Token(Token = "0x6003905")]
914 [global::Cpp2ILInjected.Address(RVA = "0x1445C94", Offset = "0x1445C94", Length = "0xC")]
915 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
916 public bool honey()
917 {
918 throw null;
919 }
920
921 [global::Cpp2ILInjected.Token(Token = "0x6003906")]
922 [global::Cpp2ILInjected.Address(RVA = "0x14475D4", Offset = "0x14475D4", Length = "0xC")]
923 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
924 public bool changed()
925 {
926 throw null;
927 }
928
929 [global::Cpp2ILInjected.Token(Token = "0x6003907")]
930 [global::Cpp2ILInjected.Address(RVA = "0x1445CA0", Offset = "0x1445CA0", Length = "0xC")]
931 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
932 public bool wall()
933 {
934 throw null;
935 }
936
937 [global::Cpp2ILInjected.Token(Token = "0x6003908")]
938 [global::Cpp2ILInjected.Address(RVA = "0x1445C48", Offset = "0x1445C48", Length = "0x28")]
939 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
940 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
941 public byte option()
942 {
943 throw null;
944 }
945
946 [global::Cpp2ILInjected.Token(Token = "0x6003909")]
947 [global::Cpp2ILInjected.Address(RVA = "0x14475E0", Offset = "0x14475E0", Length = "0xC")]
948 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
949 public byte color()
950 {
951 throw null;
952 }
953
954 [global::Cpp2ILInjected.Token(Token = "0x40079A1")]
955 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
956 public byte misc;
957
958 [global::Cpp2ILInjected.Token(Token = "0x40079A2")]
959 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1")]
960 public byte misc2;
961 }
962
963 [global::Cpp2ILInjected.Token(Token = "0x20006B6")]
964 public class BitReader
965 {
966 [global::Cpp2ILInjected.Token(Token = "0x600390A")]
967 [global::Cpp2ILInjected.Address(RVA = "0x1444D0C", Offset = "0x1444D0C", Length = "0x30")]
968 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
969 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
971 {
972 throw null;
973 }
974
975 [global::Cpp2ILInjected.Token(Token = "0x600390B")]
976 [global::Cpp2ILInjected.Address(RVA = "0x1444D3C", Offset = "0x1444D3C", Length = "0x134")]
977 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
978 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MapHelper), Member = "ReadRunLengthEncodingData", MemberParameters = new object[]
979 {
980 "Terraria.Map.MapHelper.RunLengthEncodingCompressionProfile",
982 typeof(Action<int, int, uint>)
983 }, ReturnType = typeof(void))]
984 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
985 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Min", MemberParameters = new object[]
986 {
987 typeof(uint),
988 typeof(uint)
989 }, ReturnType = typeof(uint))]
990 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EndOfStreamException), Member = ".ctor", ReturnType = typeof(void))]
991 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
992 public uint Read(uint bitCount)
993 {
994 throw null;
995 }
996
997 [global::Cpp2ILInjected.Token(Token = "0x40079A3")]
998 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
1000
1001 [global::Cpp2ILInjected.Token(Token = "0x40079A4")]
1002 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
1003 private byte CurByteOfData;
1004
1005 [global::Cpp2ILInjected.Token(Token = "0x40079A5")]
1006 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1C")]
1007 private uint CurBit;
1008 }
1009
1011 [global::Cpp2ILInjected.Token(Token = "0x20006B7")]
1012 private sealed class <>c__DisplayClass72_0
1013 {
1014 [global::Cpp2ILInjected.Token(Token = "0x600390C")]
1015 [global::Cpp2ILInjected.Address(RVA = "0x1445260", Offset = "0x1445260", Length = "0x8")]
1016 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
1017 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
1019 {
1020 throw null;
1021 }
1022
1023 [global::Cpp2ILInjected.Token(Token = "0x600390D")]
1024 [global::Cpp2ILInjected.Address(RVA = "0x14475EC", Offset = "0x14475EC", Length = "0x110")]
1025 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
1026 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
1027 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_Map", ReturnType = typeof(WorldMap))]
1028 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldMap), Member = "UpdateLighting", MemberParameters = new object[]
1029 {
1030 typeof(int),
1031 typeof(int),
1032 typeof(byte)
1033 }, ReturnType = typeof(bool))]
1034 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
1036 {
1037 throw null;
1038 }
1039
1040 [global::Cpp2ILInjected.Token(Token = "0x40079A6")]
1041 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
1043 }
1044 }
1045}
class f__AnonymousType0<< Count > j__TPar
RunLengthEncodingCompressionProfile(uint numBitsPerValue, uint bitCountForRunLengths)
Definition MapHelper.cs:860
static Dictionary< ushort, bool > snowLookup
Definition MapHelper.cs:833
static void MapColor(ushort type, ref Microsoft.Xna.Framework.Graphics.Color oldColor, byte colorType)
Definition MapHelper.cs:128
static ushort rockPosition
Definition MapHelper.cs:824
static void GetTileBaseOption(int y, ushort tileType, int frameX, int frameY, ref int baseOption)
Definition MapHelper.cs:290
static unsafe void InternalSaveMap()
Definition MapHelper.cs:446
static short[] updateTileY
Definition MapHelper.cs:695
const int drawLoopMilliseconds
Definition MapHelper.cs:701
static void LoadMapHeader(BinaryReader fileIO)
Definition MapHelper.cs:473
const int Header2_ReadHeader3Bit
Definition MapHelper.cs:731
static ushort dirtPosition
Definition MapHelper.cs:821
static Microsoft.Xna.Framework.Graphics.Color[] colorLookup
Definition MapHelper.cs:830
static ushort tilePosition
Definition MapHelper.cs:809
const int Header3_UnusudBit4
Definition MapHelper.cs:764
static bool noStatusText
Definition MapHelper.cs:698
const int Header3_UnusudBit3
Definition MapHelper.cs:761
const int HeaderBackground
Definition MapHelper.cs:728
static void LoadMapVersion1(BinaryReader fileIO, int release)
Definition MapHelper.cs:572
const int Header3_UnusudBit5
Definition MapHelper.cs:767
const int Header2_UnusedBit8
Definition MapHelper.cs:752
static void ReadRunLengthEncodingData(MapHelper.RunLengthEncodingCompressionProfile compressionProfile, DeflateStream deflateStream, Action< int, int, uint > dataRead)
Definition MapHelper.cs:498
const int Header3_UnusudBit2
Definition MapHelper.cs:758
const int drawMapLoadingLoopMilliseconds
Definition MapHelper.cs:704
static object IOLock
Definition MapHelper.cs:24
const int maxDirtGradients
Definition MapHelper.cs:791
const int Header3_UnusudBit7
Definition MapHelper.cs:773
static int TileToLookup(int tileType, int option)
Definition MapHelper.cs:93
static int numUpdateTile
Definition MapHelper.cs:689
static unsafe MapTile CreateMapTile(int i, int j, byte Light)
Definition MapHelper.cs:225
static int maxUpdateTile
Definition MapHelper.cs:686
static ushort wallPosition
Definition MapHelper.cs:812
const int Header2ShimmerBit
Definition MapHelper.cs:749
static void ResetMapData()
Definition MapHelper.cs:70
static ushort[] wallLookup
Definition MapHelper.cs:806
static void GetTileBaseOption(int x, int y, int tileType, Tile tileCache, ref int baseOption)
Definition MapHelper.cs:268
const int maxSkyGradients
Definition MapHelper.cs:788
static void LoadMapWithUltraCompression(MemoryStream wholeStream, bool isLocalMap)
Definition MapHelper.cs:533
const int maxRockGradients
Definition MapHelper.cs:794
const int HeaderHeavenAndHell
Definition MapHelper.cs:725
static ushort wallRangeEnd
Definition MapHelper.cs:839
static int[] tileOptionCounts
Definition MapHelper.cs:797
static ushort[] tileLookup
Definition MapHelper.cs:803
static unsafe void LoadMapVersion2(BinaryReader fileIO, int release)
Definition MapHelper.cs:626
static void Initialize()
Definition MapHelper.cs:60
static ushort hellPosition
Definition MapHelper.cs:827
const int Header3_ReservedForHeader4Bit
Definition MapHelper.cs:755
static ushort skyPosition
Definition MapHelper.cs:818
static void SaveMap(bool forceSave=false)
Definition MapHelper.cs:317
static int LookupCount()
Definition MapHelper.cs:103
const int Header3_UnusudBit8
Definition MapHelper.cs:776
static ushort liquidPosition
Definition MapHelper.cs:815
static Microsoft.Xna.Framework.Graphics.Color GetMapTileXnaColor(ref MapTile tile)
Definition MapHelper.cs:146
const int Header3_UnusudBit6
Definition MapHelper.cs:770
static ushort wallRangeStart
Definition MapHelper.cs:836
static void LoadMapVersionCompressed(BinaryReader fileIO, int release)
Definition MapHelper.cs:670
static short[] updateTileX
Definition MapHelper.cs:692
static int[] wallOptionCounts
Definition MapHelper.cs:800
static bool HasOption(int tileType, int option)
Definition MapHelper.cs:80
static void InternalSaveMapCompressed()
Definition MapHelper.cs:379