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
CustomCurrencyManager.cs
Go to the documentation of this file.
1using System;
8using Terraria.UI;
9
11{
12 [global::Cpp2ILInjected.Token(Token = "0x2000A5C")]
14 {
15 [global::Cpp2ILInjected.Token(Token = "0x6004E68")]
16 [global::Cpp2ILInjected.Address(RVA = "0x8DFEFC", Offset = "0x8DFEFC", Length = "0xC4")]
17 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "Initialize_AlmostEverything", ReturnType = typeof(void))]
18 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
19 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CustomCurrencySingleCoin), Member = ".ctor", MemberParameters = new object[]
20 {
21 typeof(int),
22 typeof(long)
23 }, ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CustomCurrencyManager), Member = "RegisterCurrency", MemberParameters = new object[] { typeof(CustomCurrencySystem) }, ReturnType = typeof(int))]
25 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
26 public static void Initialize()
27 {
28 throw null;
29 }
30
31 [global::Cpp2ILInjected.Token(Token = "0x6004E69")]
32 [global::Cpp2ILInjected.Address(RVA = "0x8DFFC0", Offset = "0x8DFFC0", Length = "0x90")]
33 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CustomCurrencyManager), Member = "Initialize", ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
35 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "set_Item", MemberParameters = new object[]
36 {
37 typeof(int),
38 typeof(object)
39 }, ReturnType = typeof(void))]
40 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
42 {
43 throw null;
44 }
45
46 [global::Cpp2ILInjected.Token(Token = "0x6004E6A")]
47 [global::Cpp2ILInjected.Address(RVA = "0x8E0050", Offset = "0x8E0050", Length = "0x2EC")]
48 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
49 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemSlot), Member = "DrawSavings", MemberParameters = new object[]
50 {
53 typeof(float),
54 typeof(float),
59 typeof(bool),
61 }, ReturnType = typeof(void))]
62 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
63 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "TValue")]
64 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
65 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 20)]
66 public static long GetCurrencyCount(int currencyIndex)
67 {
68 throw null;
69 }
70
71 [global::Cpp2ILInjected.Token(Token = "0x6004E6B")]
72 [global::Cpp2ILInjected.Address(RVA = "0x8E033C", Offset = "0x8E033C", Length = "0x670")]
73 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
74 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemSlot), Member = "DrawSavings", MemberParameters = new object[]
75 {
77 typeof(float),
78 typeof(float),
79 typeof(bool),
81 }, ReturnType = typeof(void))]
82 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
83 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "TValue")]
84 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_myPlayer", ReturnType = typeof(int))]
85 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "LoadItem", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
86 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
87 {
88 typeof(float),
89 typeof(float)
90 }, ReturnType = typeof(void))]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "Size", MemberParameters = new object[] { typeof(Texture2D) }, ReturnType = typeof(Vector2))]
92 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
93 {
95 typeof(float)
96 }, ReturnType = typeof(Vector2))]
97 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "CenteredRectangle", MemberParameters = new object[]
98 {
101 }, ReturnType = typeof(Rectangle))]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = "Draw", MemberParameters = new object[]
103 {
108 }, ReturnType = typeof(void))]
109 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Color), Member = "op_Multiply", MemberParameters = new object[]
110 {
111 typeof(Color),
112 typeof(float)
113 }, ReturnType = typeof(Color))]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "DrawBorderStringFourWay", MemberParameters = new object[]
115 {
118 typeof(string),
119 typeof(float),
120 typeof(float),
121 typeof(Color),
122 typeof(Color),
124 typeof(float)
125 }, ReturnType = typeof(void))]
126 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 37)]
127 public static void DrawSavings(SpriteBatch sb, int currencyIndex, float shopx, float shopy, bool horizontal = false)
128 {
129 throw null;
130 }
131
132 [global::Cpp2ILInjected.Token(Token = "0x6004E6C")]
133 [global::Cpp2ILInjected.Address(RVA = "0x8E09AC", Offset = "0x8E09AC", Length = "0xAC")]
134 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "MouseText_DrawItemTooltip", MemberParameters = new object[]
135 {
137 typeof(int),
138 typeof(byte),
139 typeof(int),
140 typeof(int)
141 }, ReturnType = typeof(void))]
142 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
143 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "TValue")]
144 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
145 public static void GetPriceText(int currencyIndex, string[] lines, ref int currentLine, long price)
146 {
147 throw null;
148 }
149
150 [global::Cpp2ILInjected.Token(Token = "0x6004E6D")]
151 [global::Cpp2ILInjected.Address(RVA = "0x8E0A58", Offset = "0x8E0A58", Length = "0x360")]
152 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
153 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "CanAffordItem", MemberParameters = new object[]
154 {
155 typeof(long),
156 typeof(int)
157 }, ReturnType = typeof(bool))]
158 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
159 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "TryGetValue", MemberParameters = new object[]
160 {
161 typeof(int),
162 typeof(ref object)
163 }, ReturnType = typeof(bool))]
164 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
165 {
166 typeof(Array),
168 }, ReturnType = typeof(void))]
169 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 21)]
170 public static bool CanAffordItem(Player player, long price, int currencyIndex)
171 {
172 throw null;
173 }
174
175 [global::Cpp2ILInjected.Token(Token = "0x6004E6E")]
176 [global::Cpp2ILInjected.Address(RVA = "0x8E0DB8", Offset = "0x8E0DB8", Length = "0xAE4")]
177 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
178 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "BuyItem", MemberParameters = new object[]
179 {
180 typeof(long),
181 typeof(int)
182 }, ReturnType = typeof(bool))]
183 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "TValue")]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
186 {
187 typeof(Array),
189 }, ReturnType = typeof(void))]
190 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
191 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = ".ctor", ReturnType = typeof(void))]
192 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point>), Member = ".ctor", ReturnType = typeof(void))]
193 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<int>), Member = ".ctor", ReturnType = typeof(void))]
194 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "set_Item", MemberParameters = new object[]
195 {
196 typeof(int),
197 typeof(object)
198 }, ReturnType = typeof(void))]
199 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
200 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<int>), Member = "Contains", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(bool))]
201 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point), Member = ".ctor", MemberParameters = new object[]
202 {
203 typeof(int),
204 typeof(int)
205 }, ReturnType = typeof(void))]
206 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CustomCurrencyManager), Member = "FindEmptySlots", MemberParameters = new object[]
207 {
208 typeof(List<Item[]>),
211 typeof(int)
212 }, ReturnType = typeof(void))]
213 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 48)]
214 public static bool BuyItem(Player player, long price, int currencyIndex)
215 {
216 throw null;
217 }
218
219 [global::Cpp2ILInjected.Token(Token = "0x6004E6F")]
220 [global::Cpp2ILInjected.Address(RVA = "0x8E189C", Offset = "0x8E189C", Length = "0x1A0")]
221 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
222 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CustomCurrencyManager), Member = "BuyItem", MemberParameters = new object[]
223 {
224 typeof(Player),
225 typeof(long),
226 typeof(int)
227 }, ReturnType = typeof(bool))]
228 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
229 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
230 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "TValue")]
231 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<int>), Member = "Contains", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(bool))]
232 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point), Member = ".ctor", MemberParameters = new object[]
233 {
234 typeof(int),
235 typeof(int)
236 }, ReturnType = typeof(void))]
237 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
239 {
240 throw null;
241 }
242
243 [global::Cpp2ILInjected.Token(Token = "0x6004E70")]
244 [global::Cpp2ILInjected.Address(RVA = "0x8E1A3C", Offset = "0x8E1A3C", Length = "0x194")]
245 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
246 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Item), Member = "get_IsCurrency", ReturnType = typeof(bool))]
247 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
248 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "GetEnumerator", ReturnType = "Enumerator<TKey, TValue>")]
249 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
250 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
251 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
252 public static bool IsCustomCurrency(Item item)
253 {
254 throw null;
255 }
256
257 [global::Cpp2ILInjected.Token(Token = "0x6004E71")]
258 [global::Cpp2ILInjected.Address(RVA = "0x8E1BD0", Offset = "0x8E1BD0", Length = "0xA0")]
259 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "GetItemExpectedPrice", MemberParameters = new object[]
260 {
261 typeof(Item),
262 typeof(ref long),
263 typeof(ref long)
264 }, ReturnType = typeof(void))]
265 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
266 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "TValue")]
267 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
268 public static void GetPrices(Item item, out long calcForSelling, out long calcForBuying)
269 {
270 throw null;
271 }
272
273 [global::Cpp2ILInjected.Token(Token = "0x6004E72")]
274 [global::Cpp2ILInjected.Address(RVA = "0x8E1C70", Offset = "0x8E1C70", Length = "0x8")]
275 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
276 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
278 {
279 throw null;
280 }
281
282 // Note: this type is marked as 'beforefieldinit'.
283 [global::Cpp2ILInjected.Token(Token = "0x6004E73")]
284 [global::Cpp2ILInjected.Address(RVA = "0x8E1C78", Offset = "0x8E1C78", Length = "0x8C")]
285 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
286 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = ".ctor", ReturnType = typeof(void))]
287 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
289 {
290 throw null;
291 }
292
293 [global::Cpp2ILInjected.Token(Token = "0x40086F9")]
294 private static int _nextCurrencyIndex;
295
296 [global::Cpp2ILInjected.Token(Token = "0x40086FA")]
298 }
299}
class f__AnonymousType0<< Count > j__TPar
static void DrawSavings(SpriteBatch sb, int currencyIndex, float shopx, float shopy, bool horizontal=false)
static void GetPrices(Item item, out long calcForSelling, out long calcForBuying)
static void FindEmptySlots(List< Item[]> inventories, Dictionary< int, List< int > > slotsToIgnore, List< Point > emptySlots, int currentInventoryIndex)
static bool BuyItem(Player player, long price, int currencyIndex)
static void GetPriceText(int currencyIndex, string[] lines, ref int currentLine, long price)
static Dictionary< int, CustomCurrencySystem > _currencies
static int RegisterCurrency(CustomCurrencySystem collection)
static bool CanAffordItem(Player player, long price, int currencyIndex)