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
NPCKillsTracker.cs
Go to the documentation of this file.
1using System;
3using System.IO;
8using Terraria.Net;
9
11{
12 [global::Cpp2ILInjected.Token(Token = "0x200093D")]
14 {
15 [global::Cpp2ILInjected.Token(Token = "0x600476E")]
16 [global::Cpp2ILInjected.Address(RVA = "0x818244", Offset = "0x818244", Length = "0xAC")]
17 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryUnlocksTracker), Member = ".ctor", ReturnType = typeof(void))]
18 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
19 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = ".ctor", ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
23 {
24 throw null;
25 }
26
27 [global::Cpp2ILInjected.Token(Token = "0x600476F")]
28 [global::Cpp2ILInjected.Address(RVA = "0x8184D8", Offset = "0x8184D8", Length = "0x238")]
29 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
30 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Item), Member = "CheckLavaDeath", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
31 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MessageBuffer), Member = "ProcessData", MemberParameters = new object[]
32 {
33 typeof(byte[]),
34 typeof(int),
35 typeof(ref int)
36 }, ReturnType = typeof(void))]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI_003_Fighters", ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "NPCLoot", ReturnType = typeof(void))]
39 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "Spawn", MemberParameters = new object[] { typeof(PlayerSpawnContext) }, ReturnType = typeof(void))]
40 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "ItemCheck_UseTorchGodsFavor", MemberParameters = new object[] { typeof(Item) }, ReturnType = typeof(void))]
41 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 8)]
42 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "GetBestiaryCreditId", ReturnType = typeof(string))]
43 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "TryGetValue", MemberParameters = new object[]
44 {
45 typeof(object),
46 typeof(ref int)
47 }, ReturnType = typeof(bool))]
48 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
49 {
50 typeof(object),
51 typeof(ref bool)
52 }, ReturnType = typeof(void))]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "Clamp", MemberTypeParameters = new object[] { typeof(int) }, MemberParameters = new object[]
54 {
55 typeof(int),
56 typeof(int),
57 typeof(int)
58 }, ReturnType = "T")]
59 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "set_Item", MemberParameters = new object[]
60 {
61 typeof(object),
62 typeof(int)
63 }, ReturnType = typeof(void))]
64 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
65 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetHost", ReturnType = typeof(bool))]
66 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetBestiaryModule), Member = "SerializeKillCount", MemberParameters = new object[]
67 {
68 typeof(int),
69 typeof(int)
70 }, ReturnType = typeof(NetPacket))]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetManager), Member = "Broadcast", MemberParameters = new object[]
72 {
74 typeof(int)
75 }, ReturnType = typeof(void))]
76 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
77 public void RegisterKill(NPC npc)
78 {
79 throw null;
80 }
81
82 [global::Cpp2ILInjected.Token(Token = "0x6004770")]
83 [global::Cpp2ILInjected.Address(RVA = "0x818710", Offset = "0x818710", Length = "0x24")]
84 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIBestiary), Member = "DrawSelectedEntry", ReturnType = typeof(void))]
85 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
86 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "GetBestiaryCreditId", ReturnType = typeof(string))]
87 public int GetKillCount(NPC npc)
88 {
89 throw null;
90 }
91
92 [global::Cpp2ILInjected.Token(Token = "0x6004771")]
93 [global::Cpp2ILInjected.Address(RVA = "0x81879C", Offset = "0x81879C", Length = "0x154")]
94 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
95 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NetBestiaryModule), Member = "Deserialize", MemberParameters = new object[]
96 {
98 typeof(int)
99 }, ReturnType = typeof(bool))]
100 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
102 {
103 typeof(object),
104 typeof(ref bool)
105 }, ReturnType = typeof(void))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "Clamp", MemberTypeParameters = new object[] { typeof(int) }, MemberParameters = new object[]
107 {
108 typeof(int),
109 typeof(int),
110 typeof(int)
111 }, ReturnType = "T")]
112 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "set_Item", MemberParameters = new object[]
113 {
114 typeof(object),
115 typeof(int)
116 }, ReturnType = typeof(void))]
117 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
118 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
119 public void SetKillCountDirectly(string persistentId, int killCount)
120 {
121 throw null;
122 }
123
124 [global::Cpp2ILInjected.Token(Token = "0x6004772")]
125 [global::Cpp2ILInjected.Address(RVA = "0x818734", Offset = "0x818734", Length = "0x68")]
126 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CommonEnemyUICollectionInfoProvider), Member = "GetEntryUICollectionInfo", ReturnType = typeof(BestiaryUICollectionInfo))]
127 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SalamanderShellyDadUICollectionInfoProvider), Member = "GetEntryUICollectionInfo", ReturnType = typeof(BestiaryUICollectionInfo))]
128 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SalamanderShellyDadUICollectionInfoProvider), Member = "GetLowestAvailableUnlockStateFromEntriesThatAreInWorld", MemberParameters = new object[] { typeof(BestiaryEntryUnlockState) }, ReturnType = typeof(BestiaryEntryUnlockState))]
129 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCKillCounterInfoElement), Member = "GetKillCount", ReturnType = typeof(int?))]
130 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "TryGetValue", MemberParameters = new object[]
132 {
133 typeof(object),
134 typeof(ref int)
135 }, ReturnType = typeof(bool))]
136 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
137 public int GetKillCount(string persistentId)
138 {
139 throw null;
140 }
141
142 [global::Cpp2ILInjected.Token(Token = "0x6004773")]
143 [global::Cpp2ILInjected.Address(RVA = "0x816F6C", Offset = "0x816F6C", Length = "0x264")]
144 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
145 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryUnlocksTracker), Member = "Save", MemberParameters = new object[] { typeof(BinaryWriter) }, ReturnType = typeof(void))]
146 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[]
148 {
149 typeof(object),
150 typeof(ref bool)
151 }, ReturnType = typeof(void))]
152 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "get_Count", ReturnType = typeof(int))]
153 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "GetEnumerator", ReturnType = "Enumerator<TKey, TValue>")]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Exit", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
157 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 17)]
158 public void Save(BinaryWriter writer)
159 {
160 throw null;
161 }
162
163 [global::Cpp2ILInjected.Token(Token = "0x6004774")]
164 [global::Cpp2ILInjected.Address(RVA = "0x817638", Offset = "0x817638", Length = "0xB8")]
165 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
166 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryUnlocksTracker), Member = "Load", MemberParameters = new object[]
167 {
169 typeof(int)
170 }, ReturnType = typeof(void))]
171 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
172 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "set_Item", MemberParameters = new object[]
173 {
174 typeof(object),
175 typeof(int)
176 }, ReturnType = typeof(void))]
177 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
179 {
180 throw null;
181 }
182
183 [global::Cpp2ILInjected.Token(Token = "0x6004775")]
184 [global::Cpp2ILInjected.Address(RVA = "0x8178BC", Offset = "0x8178BC", Length = "0x68")]
185 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
186 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryUnlocksTracker), Member = "ValidateWorld", MemberParameters = new object[]
187 {
189 typeof(int)
190 }, ReturnType = typeof(void))]
191 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
193 {
194 throw null;
195 }
196
197 [global::Cpp2ILInjected.Token(Token = "0x6004776")]
198 [global::Cpp2ILInjected.Address(RVA = "0x8179F0", Offset = "0x8179F0", Length = "0x48")]
199 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryUnlocksTracker), Member = "Reset", ReturnType = typeof(void))]
200 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
201 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "Clear", ReturnType = typeof(void))]
202 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
203 public void Reset()
204 {
205 throw null;
206 }
207
208 [global::Cpp2ILInjected.Token(Token = "0x6004777")]
209 [global::Cpp2ILInjected.Address(RVA = "0x817B3C", Offset = "0x817B3C", Length = "0x238")]
210 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
211 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryUnlocksTracker), Member = "OnPlayerJoining", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
212 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
213 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "GetEnumerator", ReturnType = "Enumerator<TKey, TValue>")]
214 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
215 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>), Member = "TryGetValue", MemberParameters = new object[]
216 {
217 typeof(object),
218 typeof(ref int)
219 }, ReturnType = typeof(bool))]
220 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetBestiaryModule), Member = "SerializeKillCount", MemberParameters = new object[]
221 {
222 typeof(int),
223 typeof(int)
224 }, ReturnType = typeof(NetPacket))]
225 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetManager), Member = "SendToClient", MemberParameters = new object[]
226 {
228 typeof(int)
229 }, ReturnType = typeof(void))]
230 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, int>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
231 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 17)]
233 {
234 throw null;
235 }
236
237 [global::Cpp2ILInjected.Token(Token = "0x400835F")]
238 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
239 private object _entryCreationLock;
240
241 [global::Cpp2ILInjected.Token(Token = "0x4008360")]
242 public const int POSITIVE_KILL_COUNT_CAP = 999999999;
243
244 [global::Cpp2ILInjected.Token(Token = "0x4008361")]
245 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
247 }
248}
class f__AnonymousType0<< Count > j__TPar
void ValidateWorld(BinaryReader reader, int gameVersionSaveWasMadeOn)
void Load(BinaryReader reader, int gameVersionSaveWasMadeOn)
void SetKillCountDirectly(string persistentId, int killCount)