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
Animation.cs
Go to the documentation of this file.
1using System;
10
11namespace Terraria
12{
13 [global::Cpp2ILInjected.Token(Token = "0x2000421")]
14 public class Animation
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x6002746")]
17 [global::Cpp2ILInjected.Address(RVA = "0x10C4B98", Offset = "0x10C4B98", Length = "0x14C")]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "Initialize_AlmostEverything", ReturnType = typeof(void))]
19 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = ".ctor", ReturnType = typeof(void))]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point16, object>), Member = ".ctor", ReturnType = typeof(void))]
22 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point16>), Member = ".ctor", ReturnType = typeof(void))]
23 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
24 public static void Initialize()
25 {
26 throw null;
27 }
28
29 [global::Cpp2ILInjected.Token(Token = "0x6002747")]
30 [global::Cpp2ILInjected.Address(RVA = "0x10C4CE4", Offset = "0x10C4CE4", Length = "0x1F8")]
31 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
32 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Animation), Member = "NewTemporaryAnimation", MemberParameters = new object[]
33 {
34 typeof(int),
35 typeof(ushort),
36 typeof(int),
37 typeof(int)
38 }, ReturnType = typeof(void))]
39 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
40 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
41 {
44 }, ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
46 private void SetDefaults(int type)
47 {
48 throw null;
49 }
50
51 [global::Cpp2ILInjected.Token(Token = "0x6002748")]
52 [global::Cpp2ILInjected.Address(RVA = "0x10C4EDC", Offset = "0x10C4EDC", Length = "0x1DC")]
53 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
54 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MessageBuffer), Member = "ProcessData", MemberParameters = new object[]
55 {
56 typeof(byte[]),
57 typeof(int),
58 typeof(ref int)
59 }, ReturnType = typeof(void))]
60 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "TileInteractionsUse", MemberParameters = new object[]
61 {
62 typeof(int),
63 typeof(int)
64 }, ReturnType = typeof(void))]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Wiring), Member = "HitWireSingle", MemberParameters = new object[]
66 {
67 typeof(int),
68 typeof(int)
69 }, ReturnType = typeof(void))]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point16), Member = ".ctor", MemberParameters = new object[]
72 {
73 typeof(int),
74 typeof(int)
75 }, ReturnType = typeof(void))]
76 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
77 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Animation), Member = "SetDefaults", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
78 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetHost", ReturnType = typeof(bool))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetMessage), Member = "SendTemporaryAnimation", MemberParameters = new object[]
80 {
81 typeof(int),
82 typeof(int),
83 typeof(int),
84 typeof(int),
85 typeof(int)
86 }, ReturnType = typeof(void))]
87 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
88 public static void NewTemporaryAnimation(int type, ushort tileType, int x, int y)
89 {
90 throw null;
91 }
92
93 [global::Cpp2ILInjected.Token(Token = "0x6002749")]
94 [global::Cpp2ILInjected.Address(RVA = "0x10C50C0", Offset = "0x10C50C0", Length = "0x10C")]
95 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
96 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Animation), Member = "Update", ReturnType = typeof(void))]
97 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point16), Member = ".ctor", MemberParameters = new object[]
99 {
100 typeof(short),
101 typeof(short)
102 }, ReturnType = typeof(void))]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point16, object>), Member = "ContainsKey", MemberParameters = new object[] { typeof(Point16) }, ReturnType = typeof(bool))]
104 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
105 private static void RemoveTemporaryAnimation(short x, short y)
106 {
107 throw null;
108 }
109
110 [global::Cpp2ILInjected.Token(Token = "0x600274A")]
111 [global::Cpp2ILInjected.Address(RVA = "0x10C51CC", Offset = "0x10C51CC", Length = "0x30C")]
112 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
113 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DoUpdate", MemberParameters = new object[] { typeof(GameTime) }, ReturnType = typeof(void))]
114 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
115 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<object>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
116 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Animation), Member = "Update", ReturnType = typeof(void))]
117 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point16, object>), Member = "set_Item", MemberParameters = new object[]
118 {
120 typeof(object)
121 }, ReturnType = typeof(void))]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Array), Member = "Clear", MemberParameters = new object[]
123 {
124 typeof(Array),
125 typeof(int),
126 typeof(int)
127 }, ReturnType = typeof(void))]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point16, object>), Member = "GetEnumerator", ReturnType = "Enumerator<TKey, TValue>")]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point16, object>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point16, object>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point16>), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = "T")]
132 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point16, object>), Member = "Remove", MemberParameters = new object[] { typeof(Point16) }, ReturnType = typeof(bool))]
133 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 20)]
134 public static void UpdateAll()
135 {
136 throw null;
137 }
138
139 [global::Cpp2ILInjected.Token(Token = "0x600274B")]
140 [global::Cpp2ILInjected.Address(RVA = "0x10C54D8", Offset = "0x10C54D8", Length = "0xD8")]
141 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
142 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Animation), Member = "UpdateAll", ReturnType = typeof(void))]
143 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
144 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
145 {
146 typeof(int),
147 typeof(int)
148 }, ReturnType = typeof(Tile))]
149 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Animation), Member = "RemoveTemporaryAnimation", MemberParameters = new object[]
151 {
152 typeof(short),
153 typeof(short)
154 }, ReturnType = typeof(void))]
155 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
156 public void Update()
157 {
158 throw null;
159 }
160
161 [global::Cpp2ILInjected.Token(Token = "0x600274C")]
162 [global::Cpp2ILInjected.Address(RVA = "0x10C55B0", Offset = "0x10C55B0", Length = "0xD8")]
163 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
164 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTileDrawData", MemberParameters = new object[]
165 {
166 typeof(int),
167 typeof(int),
169 typeof(ushort),
170 typeof(ref short),
171 typeof(ref short),
172 typeof(ref int),
173 typeof(ref int),
174 typeof(ref int),
175 typeof(ref int),
176 typeof(ref int),
177 typeof(ref int),
182 }, ReturnType = typeof(void))]
183 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTileDrawData", MemberParameters = new object[]
184 {
185 typeof(int),
186 typeof(int),
187 typeof(bool),
188 typeof(ushort),
189 typeof(ref short),
190 typeof(ref short),
191 typeof(ref int),
192 typeof(ref int),
193 typeof(ref int),
194 typeof(ref int),
195 typeof(ref int),
196 typeof(ref int),
201 }, ReturnType = typeof(void))]
202 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTileDrawData", MemberParameters = new object[]
203 {
204 typeof(int),
205 typeof(int),
206 typeof(Tile),
207 typeof(ushort),
208 typeof(ref short),
209 typeof(ref short),
210 typeof(ref int),
211 typeof(ref int),
212 typeof(ref int),
213 typeof(ref int),
214 typeof(ref int),
215 typeof(ref int),
220 }, ReturnType = typeof(void))]
221 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 12)]
222 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point16), Member = ".ctor", MemberParameters = new object[]
223 {
224 typeof(int),
225 typeof(int)
226 }, ReturnType = typeof(void))]
227 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<Point16, object>), Member = "TryGetValue", MemberParameters = new object[]
228 {
230 typeof(ref object)
231 }, ReturnType = typeof(bool))]
232 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
233 public static bool GetTemporaryFrame(int x, int y, out int frameData)
234 {
235 throw null;
236 }
237
238 [global::Cpp2ILInjected.Token(Token = "0x600274D")]
239 [global::Cpp2ILInjected.Address(RVA = "0x10C50B8", Offset = "0x10C50B8", Length = "0x8")]
240 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
241 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
242 public Animation()
243 {
244 throw null;
245 }
246
247 [global::Cpp2ILInjected.Token(Token = "0x400338B")]
249
250 [global::Cpp2ILInjected.Token(Token = "0x400338C")]
252
253 [global::Cpp2ILInjected.Token(Token = "0x400338D")]
255
256 [global::Cpp2ILInjected.Token(Token = "0x400338E")]
258
259 [global::Cpp2ILInjected.Token(Token = "0x400338F")]
260 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
261 private bool _temporary;
262
263 [global::Cpp2ILInjected.Token(Token = "0x4003390")]
264 [global::Cpp2ILInjected.FieldOffset(Offset = "0x12")]
266
267 [global::Cpp2ILInjected.Token(Token = "0x4003391")]
268 [global::Cpp2ILInjected.FieldOffset(Offset = "0x16")]
269 private ushort _tileType;
270
271 [global::Cpp2ILInjected.Token(Token = "0x4003392")]
272 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
273 private int _frame;
274
275 [global::Cpp2ILInjected.Token(Token = "0x4003393")]
276 [global::Cpp2ILInjected.FieldOffset(Offset = "0x1C")]
277 private int _frameMax;
278
279 [global::Cpp2ILInjected.Token(Token = "0x4003394")]
280 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
281 private int _frameCounter;
282
283 [global::Cpp2ILInjected.Token(Token = "0x4003395")]
284 [global::Cpp2ILInjected.FieldOffset(Offset = "0x24")]
285 private int _frameCounterMax;
286
287 [global::Cpp2ILInjected.Token(Token = "0x4003396")]
288 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
289 private int[] _frameData;
290 }
291}
class f__AnonymousType0<< Count > j__TPar
static List< Animation > _animations
Definition Animation.cs:248
static Dictionary< Point16, Animation > _temporaryAnimations
Definition Animation.cs:251
static bool GetTemporaryFrame(int x, int y, out int frameData)
Definition Animation.cs:233
static void Initialize()
Definition Animation.cs:24
static List< Point16 > _awaitingRemoval
Definition Animation.cs:254
static List< Animation > _awaitingAddition
Definition Animation.cs:257
static void RemoveTemporaryAnimation(short x, short y)
Definition Animation.cs:105
static void NewTemporaryAnimation(int type, ushort tileType, int x, int y)
Definition Animation.cs:88
void SetDefaults(int type)
Definition Animation.cs:46
static void UpdateAll()
Definition Animation.cs:134