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
ItemTrader.cs
Go to the documentation of this file.
1using System;
6
8{
9 [global::Cpp2ILInjected.Token(Token = "0x20007DF")]
10 public class ItemTrader
11 {
12 [global::Cpp2ILInjected.Token(Token = "0x60040EA")]
13 [global::Cpp2ILInjected.Address(RVA = "0x7746AC", Offset = "0x7746AC", Length = "0x44")]
14 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
15 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemTrader), Member = "AddOption_OneWay", MemberParameters = new object[]
16 {
17 typeof(int),
18 typeof(int),
19 typeof(int),
20 typeof(int)
21 }, ReturnType = typeof(void))]
23 {
24 throw null;
25 }
26
27 [global::Cpp2ILInjected.Token(Token = "0x60040EB")]
28 [global::Cpp2ILInjected.Address(RVA = "0x7747F0", Offset = "0x7747F0", Length = "0x88")]
29 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
30 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemTrader), Member = "CreateChlorophyteExtractinator", ReturnType = typeof(ItemTrader))]
31 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemTrader), Member = "AddOption_OneWay", MemberParameters = new object[]
33 {
34 typeof(int),
35 typeof(int),
36 typeof(int),
37 typeof(int)
38 }, ReturnType = typeof(void))]
40 {
41 throw null;
42 }
43
44 [global::Cpp2ILInjected.Token(Token = "0x60040EC")]
45 [global::Cpp2ILInjected.Address(RVA = "0x774878", Offset = "0x774878", Length = "0x64")]
46 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
47 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemTrader), Member = "CreateChlorophyteExtractinator", ReturnType = typeof(ItemTrader))]
48 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
49 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemTrader), Member = "AddOption_OneWay", MemberParameters = new object[]
50 {
51 typeof(int),
52 typeof(int),
53 typeof(int),
54 typeof(int)
55 }, ReturnType = typeof(void))]
57 {
58 throw null;
59 }
60
61 [global::Cpp2ILInjected.Token(Token = "0x60040ED")]
62 [global::Cpp2ILInjected.Address(RVA = "0x7746F0", Offset = "0x7746F0", Length = "0x100")]
63 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
64 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemTrader), Member = "AddOption_Interchangable", MemberParameters = new object[]
65 {
66 typeof(int),
67 typeof(int)
68 }, ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemTrader), Member = "AddOption_CyclicLoop", MemberParameters = new object[] { typeof(int[]) }, ReturnType = typeof(void))]
70 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemTrader), Member = "AddOption_FromAny", MemberParameters = new object[]
71 {
72 typeof(int),
73 typeof(int[])
74 }, ReturnType = typeof(void))]
75 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemTrader), Member = "CreateChlorophyteExtractinator", ReturnType = typeof(ItemTrader))]
76 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 38)]
77 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
78 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
80 {
81 throw null;
82 }
83
84 [global::Cpp2ILInjected.Token(Token = "0x60040EE")]
85 [global::Cpp2ILInjected.Address(RVA = "0x7748E4", Offset = "0x7748E4", Length = "0xCC")]
86 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
87 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "SmartSelect_PickToolForStrategy", MemberParameters = new object[]
88 {
89 typeof(int),
90 typeof(int),
91 typeof(int),
92 typeof(bool)
93 }, ReturnType = typeof(void))]
94 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "PlaceThing_ItemInExtractinator", MemberParameters = new object[] { typeof(ref Player.ItemCheckContext) }, ReturnType = typeof(void))]
95 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
96 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
97 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
99 {
100 throw null;
101 }
102
103 [global::Cpp2ILInjected.Token(Token = "0x60040EF")]
104 [global::Cpp2ILInjected.Address(RVA = "0x7749D4", Offset = "0x7749D4", Length = "0x528")]
105 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemTrader), Member = ".cctor", ReturnType = typeof(void))]
106 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
107 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemTrader), Member = ".ctor", ReturnType = typeof(void))]
108 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemTrader), Member = "AddOption_OneWay", MemberParameters = new object[]
109 {
110 typeof(int),
111 typeof(int),
112 typeof(int),
113 typeof(int)
114 }, ReturnType = typeof(void))]
115 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
116 {
117 typeof(Array),
119 }, ReturnType = typeof(void))]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemTrader), Member = "AddOption_CyclicLoop", MemberParameters = new object[] { typeof(int[]) }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemTrader), Member = "AddOption_FromAny", MemberParameters = new object[]
122 {
123 typeof(int),
124 typeof(int[])
125 }, ReturnType = typeof(void))]
126 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
128 {
129 throw null;
130 }
131
132 [global::Cpp2ILInjected.Token(Token = "0x60040F0")]
133 [global::Cpp2ILInjected.Address(RVA = "0x774EFC", Offset = "0x774EFC", Length = "0x7C")]
134 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ItemTrader), Member = "CreateChlorophyteExtractinator", ReturnType = typeof(ItemTrader))]
135 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
136 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
137 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
138 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
139 public ItemTrader()
140 {
141 throw null;
142 }
143
144 // Note: this type is marked as 'beforefieldinit'.
145 [global::Cpp2ILInjected.Token(Token = "0x60040F1")]
146 [global::Cpp2ILInjected.Address(RVA = "0x774F78", Offset = "0x774F78", Length = "0x4C")]
147 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
148 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ItemTrader), Member = "CreateChlorophyteExtractinator", ReturnType = typeof(ItemTrader))]
149 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
150 static ItemTrader()
151 {
152 throw null;
153 }
154
155 [global::Cpp2ILInjected.Token(Token = "0x4007EAA")]
157
158 [global::Cpp2ILInjected.Token(Token = "0x4007EAB")]
159 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
161
162 [global::Cpp2ILInjected.Token(Token = "0x20007E0")]
163 public class TradeOption
164 {
165 [global::Cpp2ILInjected.Token(Token = "0x60040F2")]
166 [global::Cpp2ILInjected.Address(RVA = "0x7749B0", Offset = "0x7749B0", Length = "0x24")]
167 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
168 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
170 {
171 throw null;
172 }
173
174 [global::Cpp2ILInjected.Token(Token = "0x60040F3")]
175 [global::Cpp2ILInjected.Address(RVA = "0x7748DC", Offset = "0x7748DC", Length = "0x8")]
176 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
177 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
178 public TradeOption()
179 {
180 throw null;
181 }
182
183 [global::Cpp2ILInjected.Token(Token = "0x4007EAC")]
184 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
185 public int TakingItemType;
186
187 [global::Cpp2ILInjected.Token(Token = "0x4007EAD")]
188 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
189 public int TakingItemStack;
190
191 [global::Cpp2ILInjected.Token(Token = "0x4007EAE")]
192 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
193 public int GivingITemType;
194
195 [global::Cpp2ILInjected.Token(Token = "0x4007EAF")]
196 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1C")]
197 public int GivingItemStack;
198 }
199 }
200}
class f__AnonymousType0<< Count > j__TPar
bool WillTradeFor(int offeredItemType, int offeredItemStack)
void AddOption_CyclicLoop(params int[] typesInOrder)
Definition ItemTrader.cs:39
void AddOption_FromAny(int givingItemType, params int[] takingItemTypes)
Definition ItemTrader.cs:56
void AddOption_OneWay(int takingItemType, int takingItemStack, int givingItemType, int givingItemStack)
Definition ItemTrader.cs:79
static ItemTrader CreateChlorophyteExtractinator()
bool TryGetTradeOption(Item item, out ItemTrader.TradeOption option)
Definition ItemTrader.cs:98
List< ItemTrader.TradeOption > _options
static ItemTrader ChlorophyteExtractinator
void AddOption_Interchangable(int itemType1, int itemType2)
Definition ItemTrader.cs:22