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
FlexibleTileWand.cs
Go to the documentation of this file.
1using System;
9
11{
12 [global::Cpp2ILInjected.Token(Token = "0x20007C2")]
13 public class FlexibleTileWand
14 {
15 [global::Cpp2ILInjected.Token(Token = "0x6004081")]
16 [global::Cpp2ILInjected.Address(RVA = "0x76FA3C", Offset = "0x76FA3C", Length = "0x1E8")]
17 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "AddVariations", MemberParameters = new object[]
19 {
20 typeof(int),
21 typeof(int),
22 typeof(int[])
23 }, ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "AddVariations_ByRow", MemberParameters = new object[]
25 {
26 typeof(int),
27 typeof(int),
28 typeof(int),
29 typeof(int[])
30 }, ReturnType = typeof(void))]
31 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "EnsureAllMaterialOptions", MemberParameters = new object[] { typeof(FlexibleTileWand) }, ReturnType = typeof(void))]
32 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 30)]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "TryGetValue", MemberParameters = new object[]
34 {
35 typeof(int),
36 typeof(ref object)
37 }, ReturnType = typeof(bool))]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand.OptionBucket), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "set_Item", MemberParameters = new object[]
40 {
41 typeof(int),
42 typeof(object)
43 }, ReturnType = typeof(void))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
46 public void AddVariation(int itemType, int tileIdToPlace, int tileStyleToPlace)
47 {
48 throw null;
49 }
50
51 [global::Cpp2ILInjected.Token(Token = "0x6004082")]
52 [global::Cpp2ILInjected.Address(RVA = "0x76FCB4", Offset = "0x76FCB4", Length = "0x6C")]
53 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
54 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerLarge", ReturnType = typeof(FlexibleTileWand))]
55 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerMedium", ReturnType = typeof(FlexibleTileWand))]
56 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerSmall", ReturnType = typeof(FlexibleTileWand))]
57 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 64)]
58 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "AddVariation", MemberParameters = new object[]
59 {
60 typeof(int),
61 typeof(int),
62 typeof(int)
63 }, ReturnType = typeof(void))]
64 public void AddVariations(int itemType, int tileIdToPlace, params int[] stylesToPlace)
65 {
66 throw null;
67 }
68
69 [global::Cpp2ILInjected.Token(Token = "0x6004083")]
70 [global::Cpp2ILInjected.Address(RVA = "0x76FD20", Offset = "0x76FD20", Length = "0x98")]
71 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
72 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "ForModders_AddPotsToWand", MemberParameters = new object[]
73 {
75 typeof(ref int),
76 typeof(ref ushort)
77 }, ReturnType = typeof(void))]
78 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 12)]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "AddVariation", MemberParameters = new object[]
80 {
81 typeof(int),
82 typeof(int),
83 typeof(int)
84 }, ReturnType = typeof(void))]
85 public void AddVariations_ByRow(int itemType, int tileIdToPlace, int variationsPerRow, params int[] rows)
86 {
87 throw null;
88 }
89
90 [global::Cpp2ILInjected.Token(Token = "0x6004084")]
91 [global::Cpp2ILInjected.Address(RVA = "0x76FDB8", Offset = "0x76FDB8", Length = "0xFC")]
92 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
93 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "TryGetAmmo", MemberParameters = new object[]
94 {
95 typeof(Item),
98 typeof(ref float),
100 }, ReturnType = typeof(bool))]
101 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "ModifyFlexibleWandPlacementInfo", MemberParameters = new object[]
102 {
103 typeof(ref int),
104 typeof(ref int),
105 typeof(ref int?)
106 }, ReturnType = typeof(bool))]
107 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "PlaceThing_Tiles_PlaceIt_ConsumeFlexibleWandMaterial", ReturnType = typeof(void))]
108 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "PlaceThing_Tiles_CheckFlexibleWand", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(bool))]
109 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
110 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GUIRubbleMaker), Member = "RefreshOptions", ReturnType = typeof(void))]
111 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Item), Member = "get_IsAir", ReturnType = typeof(bool))]
112 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
114 {
115 throw null;
116 }
117
118 [global::Cpp2ILInjected.Token(Token = "0x6004085")]
119 [global::Cpp2ILInjected.Address(RVA = "0x76FEB4", Offset = "0x76FEB4", Length = "0x238")]
120 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerLarge", ReturnType = typeof(FlexibleTileWand))]
121 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerMedium", ReturnType = typeof(FlexibleTileWand))]
122 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerSmall", ReturnType = typeof(FlexibleTileWand))]
123 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
124 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "AddVariation", MemberParameters = new object[]
125 {
126 typeof(int),
127 typeof(int),
128 typeof(int)
129 }, ReturnType = typeof(void))]
131 {
132 throw null;
133 }
134
135 [global::Cpp2ILInjected.Token(Token = "0x6004086")]
136 [global::Cpp2ILInjected.Address(RVA = "0x7700EC", Offset = "0x7700EC", Length = "0x698")]
137 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = ".cctor", ReturnType = typeof(void))]
138 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = ".ctor", ReturnType = typeof(void))]
140 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "EnsureAllMaterialOptions", MemberParameters = new object[] { typeof(FlexibleTileWand) }, ReturnType = typeof(void))]
141 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
142 {
143 typeof(Array),
145 }, ReturnType = typeof(void))]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "AddVariations", MemberParameters = new object[]
147 {
148 typeof(int),
149 typeof(int),
150 typeof(int[])
151 }, ReturnType = typeof(void))]
152 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 46)]
154 {
155 throw null;
156 }
157
158 [global::Cpp2ILInjected.Token(Token = "0x6004087")]
159 [global::Cpp2ILInjected.Address(RVA = "0x77082C", Offset = "0x77082C", Length = "0x5E8")]
160 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = ".cctor", ReturnType = typeof(void))]
161 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
162 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = ".ctor", ReturnType = typeof(void))]
163 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "EnsureAllMaterialOptions", MemberParameters = new object[] { typeof(FlexibleTileWand) }, ReturnType = typeof(void))]
164 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "AddVariations", MemberParameters = new object[]
165 {
166 typeof(int),
167 typeof(int),
168 typeof(int[])
169 }, ReturnType = typeof(void))]
170 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
171 {
172 typeof(Array),
174 }, ReturnType = typeof(void))]
175 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 42)]
177 {
178 throw null;
179 }
180
181 [global::Cpp2ILInjected.Token(Token = "0x6004088")]
182 [global::Cpp2ILInjected.Address(RVA = "0x770E14", Offset = "0x770E14", Length = "0x438")]
183 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = ".cctor", ReturnType = typeof(void))]
184 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = ".ctor", ReturnType = typeof(void))]
186 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "EnsureAllMaterialOptions", MemberParameters = new object[] { typeof(FlexibleTileWand) }, ReturnType = typeof(void))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
188 {
189 typeof(Array),
191 }, ReturnType = typeof(void))]
192 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "AddVariations", MemberParameters = new object[]
193 {
194 typeof(int),
195 typeof(int),
196 typeof(int[])
197 }, ReturnType = typeof(void))]
198 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 31)]
200 {
201 throw null;
202 }
203
204 [global::Cpp2ILInjected.Token(Token = "0x6004089")]
205 [global::Cpp2ILInjected.Address(RVA = "0x77124C", Offset = "0x77124C", Length = "0x3FC")]
206 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
207 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
208 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
209 {
210 typeof(Array),
212 }, ReturnType = typeof(void))]
213 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "AddVariations_ByRow", MemberParameters = new object[]
214 {
215 typeof(int),
216 typeof(int),
217 typeof(int),
218 typeof(int[])
219 }, ReturnType = typeof(void))]
220 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 25)]
221 public static void ForModders_AddPotsToWand(FlexibleTileWand wand, ref int echoPileStyle, ref ushort tileType)
222 {
223 throw null;
224 }
225
226 [global::Cpp2ILInjected.Token(Token = "0x600408A")]
227 [global::Cpp2ILInjected.Address(RVA = "0x770784", Offset = "0x770784", Length = "0xA8")]
228 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerLarge", ReturnType = typeof(FlexibleTileWand))]
229 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerMedium", ReturnType = typeof(FlexibleTileWand))]
230 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerSmall", ReturnType = typeof(FlexibleTileWand))]
231 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
232 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = ".ctor", ReturnType = typeof(void))]
233 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = ".ctor", ReturnType = typeof(void))]
234 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
235 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
237 {
238 throw null;
239 }
240
241 // Note: this type is marked as 'beforefieldinit'.
242 [global::Cpp2ILInjected.Token(Token = "0x600408B")]
243 [global::Cpp2ILInjected.Address(RVA = "0x771648", Offset = "0x771648", Length = "0x70")]
244 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
245 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerSmall", ReturnType = typeof(FlexibleTileWand))]
246 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerMedium", ReturnType = typeof(FlexibleTileWand))]
247 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FlexibleTileWand), Member = "CreateRubblePlacerLarge", ReturnType = typeof(FlexibleTileWand))]
248 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
250 {
251 throw null;
252 }
253
254 [global::Cpp2ILInjected.Token(Token = "0x4007E37")]
256
257 [global::Cpp2ILInjected.Token(Token = "0x4007E38")]
259
260 [global::Cpp2ILInjected.Token(Token = "0x4007E39")]
262
263 [global::Cpp2ILInjected.Token(Token = "0x4007E3A")]
264 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
266
267 [global::Cpp2ILInjected.Token(Token = "0x4007E3B")]
268 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
270
271 [global::Cpp2ILInjected.Token(Token = "0x4007E3C")]
272 private static int maxVariations;
273
274 [global::Cpp2ILInjected.Token(Token = "0x20007C3")]
275 public class OptionBucket
276 {
277 [global::Cpp2ILInjected.Token(Token = "0x600408C")]
278 [global::Cpp2ILInjected.Address(RVA = "0x76FC24", Offset = "0x76FC24", Length = "0x88")]
279 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FlexibleTileWand), Member = "AddVariation", MemberParameters = new object[]
280 {
281 typeof(int),
282 typeof(int),
283 typeof(int)
284 }, ReturnType = typeof(void))]
285 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
286 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
287 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
288 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
290 {
291 throw null;
292 }
293
294 [global::Cpp2ILInjected.Token(Token = "0x600408D")]
295 [global::Cpp2ILInjected.Address(RVA = "0x7716B8", Offset = "0x7716B8", Length = "0x78")]
296 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
297 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
298 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
299 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
301 {
302 throw null;
303 }
304
305 [global::Cpp2ILInjected.Token(Token = "0x600408E")]
306 [global::Cpp2ILInjected.Address(RVA = "0x771730", Offset = "0x771730", Length = "0x78")]
307 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
308 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
309 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
310 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
315
316 [global::Cpp2ILInjected.Token(Token = "0x4007E3D")]
317 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
319
320 [global::Cpp2ILInjected.Token(Token = "0x4007E3E")]
321 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
323 }
324
325 [global::Cpp2ILInjected.Token(Token = "0x20007C4")]
326 public class PlacementOption
327 {
328 [global::Cpp2ILInjected.Token(Token = "0x600408F")]
329 [global::Cpp2ILInjected.Address(RVA = "0x76FCAC", Offset = "0x76FCAC", Length = "0x8")]
330 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
331 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
333 {
334 throw null;
335 }
336
337 [global::Cpp2ILInjected.Token(Token = "0x4007E3F")]
338 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
339 public int TileIdToPlace;
340
341 [global::Cpp2ILInjected.Token(Token = "0x4007E40")]
342 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
344 }
345 }
346}
class f__AnonymousType0<< Count > j__TPar
FlexibleTileWand.PlacementOption GetRandomOption(UnifiedRandom random)
FlexibleTileWand.PlacementOption GetOptionWithCycling(int cycleOffset)
List< FlexibleTileWand.PlacementOption > Options
static FlexibleTileWand CreateRubblePlacerSmall()
void AddVariations(int itemType, int tileIdToPlace, params int[] stylesToPlace)
static FlexibleTileWand CreateRubblePlacerLarge()
Dictionary< int, FlexibleTileWand.OptionBucket > _options
void AddVariation(int itemType, int tileIdToPlace, int tileStyleToPlace)
static FlexibleTileWand RubblePlacementSmall
static FlexibleTileWand RubblePlacementMedium
void AddVariations_ByRow(int itemType, int tileIdToPlace, int variationsPerRow, params int[] rows)
static FlexibleTileWand RubblePlacementLarge
bool TryGetPlacementOption(Player player, int randomSeed, int selectCycleOffset, out FlexibleTileWand.PlacementOption option, out Item itemToConsume)
static void EnsureAllMaterialOptions(FlexibleTileWand wand)
static void ForModders_AddPotsToWand(FlexibleTileWand wand, ref int echoPileStyle, ref ushort tileType)
static FlexibleTileWand CreateRubblePlacerMedium()