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
NPCKilledCondition.cs
Go to the documentation of this file.
1using System;
7
9{
10 [global::Cpp2ILInjected.Token(Token = "0x20009AF")]
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x600495B")]
14 [global::Cpp2ILInjected.Address(RVA = "0x82D39C", Offset = "0x82D39C", Length = "0xE4")]
15 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCKilledCondition), Member = "Create", MemberParameters = new object[]
17 {
19 typeof(short)
20 }, ReturnType = typeof(AchievementCondition))]
21 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCKilledCondition), Member = "CreateMany", MemberParameters = new object[]
22 {
24 typeof(short[])
25 }, ReturnType = typeof(AchievementCondition[]))]
26 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
27 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(short), Member = "ToString", ReturnType = typeof(string))]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
29 {
30 typeof(string),
31 typeof(string)
32 }, ReturnType = typeof(string))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AchievementCondition), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCKilledCondition), Member = "ListenForPickup", MemberParameters = new object[] { typeof(NPCKilledCondition) }, ReturnType = typeof(void))]
35 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
36 private NPCKilledCondition(LocalUser user, short npcId)
37 {
38 throw null;
39 }
40
41 [global::Cpp2ILInjected.Token(Token = "0x600495C")]
42 [global::Cpp2ILInjected.Address(RVA = "0x82D708", Offset = "0x82D708", Length = "0xB4")]
43 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCKilledCondition), Member = "Create", MemberParameters = new object[]
44 {
46 typeof(short[])
47 }, ReturnType = typeof(AchievementCondition))]
48 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
49 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(short), Member = "ToString", ReturnType = typeof(string))]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
51 {
52 typeof(string),
53 typeof(string)
54 }, ReturnType = typeof(string))]
55 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AchievementCondition), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCKilledCondition), Member = "ListenForPickup", MemberParameters = new object[] { typeof(NPCKilledCondition) }, ReturnType = typeof(void))]
57 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
58 private NPCKilledCondition(LocalUser user, short[] npcIds)
59 {
60 throw null;
61 }
62
63 [global::Cpp2ILInjected.Token(Token = "0x600495D")]
64 [global::Cpp2ILInjected.Address(RVA = "0x82D7BC", Offset = "0x82D7BC", Length = "0xD4")]
65 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
66 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
67 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<short, object>), Member = "get_Item", MemberParameters = new object[] { typeof(short) }, ReturnType = "TValue")]
68 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "Remove", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(bool))]
69 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
70 public override void Shutdown()
71 {
72 throw null;
73 }
74
75 [global::Cpp2ILInjected.Token(Token = "0x600495E")]
76 [global::Cpp2ILInjected.Address(RVA = "0x82D480", Offset = "0x82D480", Length = "0x288")]
77 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
78 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCKilledCondition), Member = ".ctor", MemberParameters = new object[]
79 {
81 typeof(short)
82 }, ReturnType = typeof(void))]
83 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCKilledCondition), Member = ".ctor", MemberParameters = new object[]
84 {
86 typeof(short[])
87 }, ReturnType = typeof(void))]
88 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
89 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AchievementsHelper.NPCKilledEvent), Member = ".ctor", MemberParameters = new object[]
90 {
91 typeof(object),
93 }, ReturnType = typeof(void))]
94 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(AchievementsHelper), Member = "add_OnNPCKilled", MemberParameters = new object[] { typeof(AchievementsHelper.NPCKilledEvent) }, ReturnType = typeof(void))]
95 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<short, object>), Member = "ContainsKey", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(bool))]
96 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
97 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<short, object>), Member = "set_Item", MemberParameters = new object[]
98 {
99 typeof(short),
100 typeof(object)
101 }, ReturnType = typeof(void))]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<short, object>), Member = "get_Item", MemberParameters = new object[] { typeof(short) }, ReturnType = "TValue")]
103 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 16)]
104 private static void ListenForPickup(NPCKilledCondition condition)
105 {
106 throw null;
107 }
108
109 [global::Cpp2ILInjected.Token(Token = "0x600495F")]
110 [global::Cpp2ILInjected.Address(RVA = "0x82D890", Offset = "0x82D890", Length = "0x1AC")]
111 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
112 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
113 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<short, object>), Member = "TryGetValue", MemberParameters = new object[]
114 {
115 typeof(short),
116 typeof(ref object)
117 }, ReturnType = typeof(bool))]
118 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "GetEnumerator", ReturnType = "Enumerator<T>")]
119 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
122 private static void NPCKilledListener(Player player, short npcId)
123 {
124 throw null;
125 }
126
127 [global::Cpp2ILInjected.Token(Token = "0x6004960")]
128 [global::Cpp2ILInjected.Address(RVA = "0x82DA3C", Offset = "0x82DA3C", Length = "0x68")]
129 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(AchievementInitializer), Member = "Load", ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCKilledCondition), Member = ".ctor", MemberParameters = new object[]
132 {
134 typeof(short[])
135 }, ReturnType = typeof(void))]
136 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
137 public static AchievementCondition Create(LocalUser user, params short[] npcIds)
138 {
139 throw null;
140 }
141
142 [global::Cpp2ILInjected.Token(Token = "0x6004961")]
143 [global::Cpp2ILInjected.Address(RVA = "0x82DAA4", Offset = "0x82DAA4", Length = "0x68")]
144 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(AchievementInitializer), Member = "Load", ReturnType = typeof(void))]
145 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 19)]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCKilledCondition), Member = ".ctor", MemberParameters = new object[]
147 {
149 typeof(short)
150 }, ReturnType = typeof(void))]
151 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
152 public static AchievementCondition Create(LocalUser user, short npcId)
153 {
154 throw null;
155 }
156
157 [global::Cpp2ILInjected.Token(Token = "0x6004962")]
158 [global::Cpp2ILInjected.Address(RVA = "0x82DB0C", Offset = "0x82DB0C", Length = "0xF0")]
159 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
160 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(AchievementInitializer), Member = "Load", ReturnType = typeof(void))]
161 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
162 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCKilledCondition), Member = ".ctor", MemberParameters = new object[]
163 {
165 typeof(short)
166 }, ReturnType = typeof(void))]
167 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
168 public static AchievementCondition[] CreateMany(LocalUser user, params short[] npcs)
169 {
170 throw null;
171 }
172
173 // Note: this type is marked as 'beforefieldinit'.
174 [global::Cpp2ILInjected.Token(Token = "0x6004963")]
175 [global::Cpp2ILInjected.Address(RVA = "0x82DBFC", Offset = "0x82DBFC", Length = "0x8C")]
176 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
177 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<short, object>), Member = ".ctor", ReturnType = typeof(void))]
178 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
180 {
181 throw null;
182 }
183
184 [global::Cpp2ILInjected.Token(Token = "0x4008446")]
185 private const string Identifier = "NPC_KILLED";
186
187 [global::Cpp2ILInjected.Token(Token = "0x4008447")]
189
190 [global::Cpp2ILInjected.Token(Token = "0x4008448")]
191 private static bool _isListenerHooked;
192
193 [global::Cpp2ILInjected.Token(Token = "0x4008449")]
194 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
196
197 [global::Cpp2ILInjected.Token(Token = "0x400844A")]
198 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
199 private short[] _npcIds;
200 }
201}
class f__AnonymousType0<< Count > j__TPar
static Dictionary< short, List< NPCKilledCondition > > _listeners
static AchievementCondition[] CreateMany(LocalUser user, params short[] npcs)
static AchievementCondition Create(LocalUser user, short npcId)
static AchievementCondition Create(LocalUser user, params short[] npcIds)
static void NPCKilledListener(Player player, short npcId)
static void ListenForPickup(NPCKilledCondition condition)