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
MarbleBiome.cs
Go to the documentation of this file.
1using System;
7
9{
10 [global::Cpp2ILInjected.Token(Token = "0x20008F4")]
11 public class MarbleBiome : MicroBiome
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x600462F")]
14 [global::Cpp2ILInjected.Address(RVA = "0x7D1660", Offset = "0x7D1660", Length = "0x284")]
15 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MarbleBiome), Member = "Place", MemberParameters = new object[]
17 {
20 }, ReturnType = typeof(bool))]
21 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
22 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MarbleBiome.Slab), Member = "get_IsSolid", ReturnType = typeof(bool))]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MarbleBiome.SlabState), Member = ".ctor", MemberParameters = new object[]
24 {
25 typeof(object),
27 }, ReturnType = typeof(void))]
28 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
29 private void SmoothSlope(int x, int y)
30 {
31 throw null;
32 }
33
34 [global::Cpp2ILInjected.Token(Token = "0x6004630")]
35 [global::Cpp2ILInjected.Address(RVA = "0x7D1A3C", Offset = "0x7D1A3C", Length = "0x3E0")]
36 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MarbleBiome), Member = "Place", MemberParameters = new object[]
38 {
41 }, ReturnType = typeof(bool))]
42 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
43 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "get_genRand", ReturnType = typeof(UnifiedRandom))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
45 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
46 {
47 typeof(int),
48 typeof(int)
49 }, ReturnType = typeof(Tile))]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
51 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "ResetToType", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(void))]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_wall", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldUtils), Member = "TileFrame", MemberParameters = new object[]
55 {
56 typeof(int),
57 typeof(int),
58 typeof(bool)
59 }, ReturnType = typeof(void))]
60 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SquareWallFrame", MemberParameters = new object[]
61 {
62 typeof(int),
63 typeof(int),
64 typeof(bool)
65 }, ReturnType = typeof(void))]
66 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "SmoothSlope", MemberParameters = new object[]
67 {
68 typeof(int),
69 typeof(int),
70 typeof(bool),
71 typeof(bool)
72 }, ReturnType = typeof(void))]
73 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SolidTile", MemberParameters = new object[]
74 {
75 typeof(int),
76 typeof(int),
77 typeof(bool)
78 }, ReturnType = typeof(bool))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GenBase), Member = "get__random", ReturnType = typeof(UnifiedRandom))]
80 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "PlaceTight", MemberParameters = new object[]
81 {
82 typeof(int),
83 typeof(int),
84 typeof(bool)
85 }, ReturnType = typeof(void))]
86 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
87 private void PlaceSlab(MarbleBiome.Slab slab, int originX, int originY, int scale)
88 {
89 throw null;
90 }
91
92 [global::Cpp2ILInjected.Token(Token = "0x6004631")]
93 [global::Cpp2ILInjected.Address(RVA = "0x7D1E1C", Offset = "0x7D1E1C", Length = "0xE0")]
94 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
95 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MarbleBiome), Member = "Place", MemberParameters = new object[]
96 {
99 }, ReturnType = typeof(bool))]
100 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SolidOrSlopedTile", MemberParameters = new object[]
102 {
103 typeof(int),
104 typeof(int)
105 }, ReturnType = typeof(bool))]
106 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
107 private static bool IsGroupSolid(int x, int y, int scale)
108 {
109 throw null;
110 }
111
112 [global::Cpp2ILInjected.Token(Token = "0x6004632")]
113 [global::Cpp2ILInjected.Address(RVA = "0x7D1EFC", Offset = "0x7D1EFC", Length = "0x78C")]
114 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
115 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "BiomeTileCheck", MemberParameters = new object[]
117 {
118 typeof(int),
119 typeof(int)
120 }, ReturnType = typeof(bool))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GenBase), Member = "get__random", ReturnType = typeof(UnifiedRandom))]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[]
123 {
124 typeof(int),
125 typeof(int)
126 }, ReturnType = typeof(int))]
127 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MarbleBiome), Member = "IsGroupSolid", MemberParameters = new object[]
128 {
129 typeof(int),
130 typeof(int),
131 typeof(int)
132 }, ReturnType = typeof(bool))]
133 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "NextDouble", ReturnType = typeof(double))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MarbleBiome.SlabState), Member = ".ctor", MemberParameters = new object[]
136 {
137 typeof(object),
139 }, ReturnType = typeof(void))]
140 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MarbleBiome), Member = "SmoothSlope", MemberParameters = new object[]
141 {
142 typeof(int),
143 typeof(int)
144 }, ReturnType = typeof(void))]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Max", MemberParameters = new object[]
146 {
147 typeof(double),
148 typeof(double)
149 }, ReturnType = typeof(double))]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Min", MemberParameters = new object[]
151 {
152 typeof(int),
153 typeof(int)
154 }, ReturnType = typeof(int))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "Lerp", MemberParameters = new object[]
156 {
157 typeof(double),
158 typeof(double),
159 typeof(double)
160 }, ReturnType = typeof(double))]
161 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MarbleBiome), Member = "PlaceSlab", MemberParameters = new object[]
162 {
163 typeof(MarbleBiome.Slab),
164 typeof(int),
165 typeof(int),
166 typeof(int)
167 }, ReturnType = typeof(void))]
168 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = ".ctor", MemberParameters = new object[]
169 {
170 typeof(int),
171 typeof(int),
172 typeof(int),
173 typeof(int)
174 }, ReturnType = typeof(void))]
175 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StructureMap), Member = "AddStructure", MemberParameters = new object[]
176 {
178 typeof(int)
179 }, ReturnType = typeof(void))]
180 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
181 public override bool Place(Point origin, StructureMap structures)
182 {
183 throw null;
184 }
185
186 [global::Cpp2ILInjected.Token(Token = "0x6004633")]
187 [global::Cpp2ILInjected.Address(RVA = "0x7D2690", Offset = "0x7D2690", Length = "0x8")]
188 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
189 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MicroBiome), Member = ".ctor", ReturnType = typeof(void))]
190 public MarbleBiome()
191 {
192 throw null;
193 }
194
195 [global::Cpp2ILInjected.Token(Token = "0x4008263")]
196 private const int SCALE = 3;
197
198 [global::Cpp2ILInjected.Token(Token = "0x4008264")]
199 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
201
202 [global::Cpp2ILInjected.Token(Token = "0x20008F5")]
203 private delegate bool SlabState(int x, int y, int scale);
204
205 [global::Cpp2ILInjected.Token(Token = "0x20008F6")]
206 private static class SlabStates
207 {
208 [global::Cpp2ILInjected.Token(Token = "0x6004638")]
209 [global::Cpp2ILInjected.Address(RVA = "0x7D277C", Offset = "0x7D277C", Length = "0x8")]
210 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
211 public static bool Empty(int x, int y, int scale)
212 {
213 throw null;
214 }
215
216 [global::Cpp2ILInjected.Token(Token = "0x6004639")]
217 [global::Cpp2ILInjected.Address(RVA = "0x7D2784", Offset = "0x7D2784", Length = "0x8")]
218 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
219 public static bool Solid(int x, int y, int scale)
220 {
221 throw null;
222 }
223
224 [global::Cpp2ILInjected.Token(Token = "0x600463A")]
225 [global::Cpp2ILInjected.Address(RVA = "0x7D278C", Offset = "0x7D278C", Length = "0x14")]
226 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
227 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
228 public static bool HalfBrick(int x, int y, int scale)
229 {
230 throw null;
231 }
232
233 [global::Cpp2ILInjected.Token(Token = "0x600463B")]
234 [global::Cpp2ILInjected.Address(RVA = "0x7D27A0", Offset = "0x7D27A0", Length = "0x10")]
235 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
236 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
237 public static bool BottomRightFilled(int x, int y, int scale)
238 {
239 throw null;
240 }
241
242 [global::Cpp2ILInjected.Token(Token = "0x600463C")]
243 [global::Cpp2ILInjected.Address(RVA = "0x7D27B0", Offset = "0x7D27B0", Length = "0xC")]
244 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
245 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
246 public static bool BottomLeftFilled(int x, int y, int scale)
247 {
248 throw null;
249 }
250
251 [global::Cpp2ILInjected.Token(Token = "0x600463D")]
252 [global::Cpp2ILInjected.Address(RVA = "0x7D27BC", Offset = "0x7D27BC", Length = "0xC")]
253 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
254 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
255 public static bool TopRightFilled(int x, int y, int scale)
256 {
257 throw null;
258 }
259
260 [global::Cpp2ILInjected.Token(Token = "0x600463E")]
261 [global::Cpp2ILInjected.Address(RVA = "0x7D27C8", Offset = "0x7D27C8", Length = "0x10")]
262 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
263 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
264 public static bool TopLeftFilled(int x, int y, int scale)
265 {
266 throw null;
267 }
268 }
269
270 [global::Cpp2ILInjected.Token(Token = "0x20008F7")]
271 private struct Slab
272 {
273 [global::Cpp2ILInjected.Token(Token = "0x170007F0")]
274 public bool IsSolid
275 {
276 [global::Cpp2ILInjected.Token(Token = "0x600463F")]
277 [global::Cpp2ILInjected.Address(RVA = "0x7D18E4", Offset = "0x7D18E4", Length = "0x84")]
278 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MarbleBiome), Member = "SmoothSlope", MemberParameters = new object[]
279 {
280 typeof(int),
281 typeof(int)
282 }, ReturnType = typeof(void))]
283 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
284 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = "Terraria.GameContent.Biomes.MarbleBiome.SlabState", Member = ".ctor", MemberParameters = new object[]
285 {
286 typeof(object),
288 }, ReturnType = typeof(void))]
289 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Delegate), Member = "op_Inequality", MemberParameters = new object[]
290 {
293 }, ReturnType = typeof(bool))]
294 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
295 get
296 {
297 throw null;
298 }
299 }
300
301 [global::Cpp2ILInjected.Token(Token = "0x6004640")]
302 [global::Cpp2ILInjected.Address(RVA = "0x7D27D8", Offset = "0x7D27D8", Length = "0x10")]
303 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
305 {
306 throw null;
307 }
308
309 [global::Cpp2ILInjected.Token(Token = "0x6004641")]
310 [global::Cpp2ILInjected.Address(RVA = "0x7D1A2C", Offset = "0x7D1A2C", Length = "0x10")]
311 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
313 {
314 throw null;
315 }
316
317 [global::Cpp2ILInjected.Token(Token = "0x6004642")]
318 [global::Cpp2ILInjected.Address(RVA = "0x7D2688", Offset = "0x7D2688", Length = "0x8")]
319 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
321 {
322 throw null;
323 }
324
325 [global::Cpp2ILInjected.Token(Token = "0x4008265")]
326 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
328
329 [global::Cpp2ILInjected.Token(Token = "0x4008266")]
330 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
331 public readonly bool HasWall;
332 }
333 }
334}
class f__AnonymousType0<< Count > j__TPar
static bool Empty(int x, int y, int scale)
static bool Solid(int x, int y, int scale)
static bool HalfBrick(int x, int y, int scale)
static bool TopRightFilled(int x, int y, int scale)
static bool BottomLeftFilled(int x, int y, int scale)
static bool BottomRightFilled(int x, int y, int scale)
static bool TopLeftFilled(int x, int y, int scale)
void PlaceSlab(MarbleBiome.Slab slab, int originX, int originY, int scale)
static bool IsGroupSolid(int x, int y, int scale)
delegate bool SlabState(int x, int y, int scale)
override bool Place(Point origin, StructureMap structures)
MarbleBiome.Slab WithState(MarbleBiome.SlabState state)
readonly MarbleBiome.SlabState State
static MarbleBiome.Slab Create(MarbleBiome.SlabState state, bool hasWall)
Slab(MarbleBiome.SlabState state, bool hasWall)