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
LootSimulator.cs
Go to the documentation of this file.
1using System;
4using System.Linq;
9
11{
12 [global::Cpp2ILInjected.Token(Token = "0x2000857")]
13 public class LootSimulator
14 {
15 [global::Cpp2ILInjected.Token(Token = "0x600435B")]
16 [global::Cpp2ILInjected.Address(RVA = "0x7A1740", Offset = "0x7A1740", Length = "0xB0")]
17 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
18 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
19 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LootSimulator), Member = "FillDesiredTestConditions", ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LootSimulator), Member = "FillItemExclusions", ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
24 {
25 throw null;
26 }
27
28 [global::Cpp2ILInjected.Token(Token = "0x600435C")]
29 [global::Cpp2ILInjected.Address(RVA = "0x7A1BD8", Offset = "0x7A1BD8", Length = "0x53C")]
30 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LootSimulator), Member = ".ctor", ReturnType = typeof(void))]
31 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<int>), Member = ".ctor", ReturnType = typeof(void))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<, , >), Member = ".ctor", MemberParameters = new object[]
34 {
35 typeof(object),
37 }, ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable), Member = "Select", MemberTypeParameters = new object[] { "TSource", "TResult" }, MemberParameters = new object[] { "System.Collections.Generic.IEnumerable`1<TSource>", "System.Func`3<TSource, Int32, TResult>" }, ReturnType = "System.Collections.Generic.IEnumerable`1<TResult>")]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<object, bool>), Member = ".ctor", MemberParameters = new object[]
40 {
41 typeof(object),
43 }, ReturnType = typeof(void))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable[]), Member = "Where", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[]
45 {
48 }, ReturnType = "System.Collections.Generic.IEnumerable`1<TSource>")]
49 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Func<object, int>), Member = ".ctor", MemberParameters = new object[]
50 {
51 typeof(object),
53 }, ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable[]), Member = "Select", MemberTypeParameters = new object[]
55 {
56 typeof(object),
57 typeof(int)
58 }, MemberParameters = new object[]
59 {
62 }, ReturnType = "System.Collections.Generic.IEnumerable`1<TResult>")]
63 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<int>), Member = "AddRange", MemberParameters = new object[] { typeof(IEnumerable<int>) }, ReturnType = typeof(void))]
64 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<int>), Member = "ToArray", ReturnType = "T[]")]
65 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 39)]
66 private void FillItemExclusions()
67 {
68 throw null;
69 }
70
71 [global::Cpp2ILInjected.Token(Token = "0x600435D")]
72 [global::Cpp2ILInjected.Address(RVA = "0x7A17F0", Offset = "0x7A17F0", Length = "0x3E8")]
73 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
74 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LootSimulator), Member = ".ctor", ReturnType = typeof(void))]
75 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
76 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
77 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "AddRange", MemberParameters = new object[] { typeof(IEnumerable<object>) }, ReturnType = typeof(void))]
78 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
80 {
81 throw null;
82 }
83
84 [global::Cpp2ILInjected.Token(Token = "0x600435E")]
85 [global::Cpp2ILInjected.Address(RVA = "0x7A2114", Offset = "0x7A2114", Length = "0x174")]
86 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
87 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
88 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LootSimulator), Member = "SetCleanSlateWorldConditions", ReturnType = typeof(void))]
89 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = ".ctor", ReturnType = typeof(void))]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = "Start", ReturnType = typeof(void))]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LootSimulator), Member = "TryGettingLootFor", MemberParameters = new object[]
92 {
93 typeof(int),
94 typeof(int),
95 typeof(ref string)
96 }, ReturnType = typeof(bool))]
97 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
98 {
99 typeof(string),
100 typeof(string),
101 typeof(string)
102 }, ReturnType = typeof(string))]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = "Stop", ReturnType = typeof(void))]
104 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Stopwatch), Member = "get_ElapsedMilliseconds", ReturnType = typeof(long))]
105 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
106 {
107 typeof(string),
108 typeof(object)
109 }, ReturnType = typeof(string))]
110 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
111 {
112 typeof(string),
113 typeof(string)
114 }, ReturnType = typeof(string))]
115 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
116 public void Run()
117 {
118 throw null;
119 }
120
121 [global::Cpp2ILInjected.Token(Token = "0x600435F")]
122 [global::Cpp2ILInjected.Address(RVA = "0x7A2288", Offset = "0x7A2288", Length = "0xC4")]
123 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
124 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LootSimulator), Member = "Run", ReturnType = typeof(void))]
125 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LootSimulator), Member = "TryGettingLootFor", MemberParameters = new object[]
126 {
127 typeof(int),
128 typeof(int),
129 typeof(ref string)
130 }, ReturnType = typeof(bool))]
131 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
132 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "set_GameMode", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
133 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
135 {
136 throw null;
137 }
138
139 [global::Cpp2ILInjected.Token(Token = "0x6004360")]
140 [global::Cpp2ILInjected.Address(RVA = "0x7A234C", Offset = "0x7A234C", Length = "0x52C")]
141 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
142 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LootSimulator), Member = "Run", ReturnType = typeof(void))]
143 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
144 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SimulatorInfo), Member = ".ctor", ReturnType = typeof(void))]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = ".ctor", ReturnType = typeof(void))]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "SetDefaults", MemberParameters = new object[]
147 {
148 typeof(int),
150 }, ReturnType = typeof(void))]
151 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LootSimulationItemCounter), Member = ".ctor", ReturnType = typeof(void))]
152 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "GetEnumerator", ReturnType = "Enumerator<T>")]
153 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "NPCLoot", ReturnType = typeof(void))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LootSimulator), Member = "SetCleanSlateWorldConditions", ReturnType = typeof(void))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
157 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Enumerable), Member = "ToArray", MemberTypeParameters = new object[] { "TSource" }, MemberParameters = new object[] { "System.Collections.Generic.IEnumerable`1<TSource>" }, ReturnType = "TSource[]")]
158 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(LootSimulationItemCounter), Member = "PrintCollectedItems", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(string))]
159 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(IdDictionary), Member = "GetName", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(string))]
160 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
161 {
162 typeof(string),
163 typeof(object)
164 }, ReturnType = typeof(string))]
165 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Format", MemberParameters = new object[]
166 {
167 typeof(string),
168 typeof(object),
169 typeof(object)
170 }, ReturnType = typeof(string))]
171 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
172 {
173 typeof(string),
174 typeof(string)
175 }, ReturnType = typeof(string))]
176 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 27)]
178 {
179 throw null;
180 }
181
182 [global::Cpp2ILInjected.Token(Token = "0x4008168")]
183 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
185
186 [global::Cpp2ILInjected.Token(Token = "0x4008169")]
187 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
188 private int[] _excludedItemIds;
189
191 [global::Cpp2ILInjected.Token(Token = "0x2000858")]
192 [Serializable]
193 private sealed class <>c
194 {
195 // Note: this type is marked as 'beforefieldinit'.
196 [global::Cpp2ILInjected.Token(Token = "0x6004361")]
197 [global::Cpp2ILInjected.Address(RVA = "0x7A2D58", Offset = "0x7A2D58", Length = "0x5C")]
198 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
199 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
200 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
201 static <>c()
202 {
203 throw null;
204 }
205
206 [global::Cpp2ILInjected.Token(Token = "0x6004362")]
207 [global::Cpp2ILInjected.Address(RVA = "0x7A2DB4", Offset = "0x7A2DB4", Length = "0x8")]
208 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
209 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
210 public <>c()
211 {
212 throw null;
213 }
214
215 [global::Cpp2ILInjected.Token(Token = "0x6004363")]
216 [global::Cpp2ILInjected.Address(RVA = "0x7A2DBC", Offset = "0x7A2DBC", Length = "0x80")]
217 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
218 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(<>f__AnonymousType2<, >), Member = ".ctor", MemberParameters = new object[] { "<index>j__TPar", "<state>j__TPar" }, ReturnType = typeof(void))]
219 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
221 {
222 throw null;
223 }
224
225 [global::Cpp2ILInjected.Token(Token = "0x6004364")]
226 [global::Cpp2ILInjected.Address(RVA = "0x7A2E3C", Offset = "0x7A2E3C", Length = "0x3C")]
227 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
228 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
230 {
231 throw null;
232 }
233
234 [global::Cpp2ILInjected.Token(Token = "0x6004365")]
235 [global::Cpp2ILInjected.Address(RVA = "0x7A2E78", Offset = "0x7A2E78", Length = "0x3C")]
236 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
237 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
239 {
240 throw null;
241 }
242
243 [global::Cpp2ILInjected.Token(Token = "0x6004366")]
244 [global::Cpp2ILInjected.Address(RVA = "0x7A2EB4", Offset = "0x7A2EB4", Length = "0x80")]
245 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
246 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(<>f__AnonymousType2<, >), Member = ".ctor", MemberParameters = new object[] { "<index>j__TPar", "<state>j__TPar" }, ReturnType = typeof(void))]
247 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
249 {
250 throw null;
251 }
252
253 [global::Cpp2ILInjected.Token(Token = "0x6004367")]
254 [global::Cpp2ILInjected.Address(RVA = "0x7A2F34", Offset = "0x7A2F34", Length = "0x3C")]
255 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
256 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
258 {
259 throw null;
260 }
261
262 [global::Cpp2ILInjected.Token(Token = "0x6004368")]
263 [global::Cpp2ILInjected.Address(RVA = "0x7A2F70", Offset = "0x7A2F70", Length = "0x3C")]
264 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
265 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
267 {
268 throw null;
269 }
270
271 [global::Cpp2ILInjected.Token(Token = "0x400816A")]
272 public static readonly LootSimulator.<>c <>9;
273
274 [global::Cpp2ILInjected.Token(Token = "0x400816B")]
276
277 [global::Cpp2ILInjected.Token(Token = "0x400816C")]
278 public static Func<<>f__AnonymousType2<int, bool>, bool> <>9__3_1;
279
280 [global::Cpp2ILInjected.Token(Token = "0x400816D")]
281 public static Func<<>f__AnonymousType2<int, bool>, int> <>9__3_2;
282
283 [global::Cpp2ILInjected.Token(Token = "0x400816E")]
285
286 [global::Cpp2ILInjected.Token(Token = "0x400816F")]
287 public static Func<<>f__AnonymousType2<int, bool>, bool> <>9__3_4;
288
289 [global::Cpp2ILInjected.Token(Token = "0x4008170")]
290 public static Func<<>f__AnonymousType2<int, bool>, int> <>9__3_5;
291 }
292 }
293}
class f__AnonymousType0<< Count > j__TPar
List< ISimulationConditionSetter > _neededTestConditions
bool TryGettingLootFor(int npcNetId, int timesMultiplier, out string outputText)