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
TilePaintSystemV2.cs
Go to the documentation of this file.
1using System;
8
10{
11 [global::Cpp2ILInjected.Token(Token = "0x20007D3")]
12 public class TilePaintSystemV2
13 {
14 [global::Cpp2ILInjected.Token(Token = "0x60040BB")]
15 [global::Cpp2ILInjected.Address(RVA = "0x773760", Offset = "0x773760", Length = "0x38")]
16 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTiles", MemberParameters = new object[]
17 {
20 typeof(int),
21 typeof(int),
22 typeof(int),
23 typeof(int),
24 typeof(bool),
25 typeof(bool),
26 typeof(bool),
27 typeof(int)
28 }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTileDrawTexture", MemberParameters = new object[]
30 {
32 typeof(int),
34 }, ReturnType = typeof(Texture2D))]
35 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTileDrawTexture", MemberParameters = new object[]
36 {
38 typeof(int),
39 typeof(int),
41 }, ReturnType = typeof(Texture2D))]
42 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTileDrawTexture", MemberParameters = new object[]
43 {
44 typeof(int),
45 typeof(int),
46 typeof(ushort),
47 typeof(short),
48 typeof(short),
49 typeof(byte),
51 }, ReturnType = typeof(Texture2D))]
52 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTileDrawTexture", MemberParameters = new object[]
53 {
54 typeof(Tile),
55 typeof(int),
56 typeof(int),
58 }, ReturnType = typeof(Texture2D))]
59 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTileDrawTexture", MemberParameters = new object[]
60 {
61 typeof(Tile),
62 typeof(int),
63 typeof(int),
64 typeof(int),
66 }, ReturnType = typeof(Texture2D))]
67 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
68 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TreePaintSystemData), Member = "GetTileSettings", MemberParameters = new object[]
69 {
70 typeof(int),
71 typeof(int)
72 }, ReturnType = typeof(TreePaintingSettings))]
73 public EffectPass GetTileEffect(int tileType, int tileStyle, int paintColor)
74 {
75 throw null;
76 }
77
78 [global::Cpp2ILInjected.Token(Token = "0x60040BC")]
79 [global::Cpp2ILInjected.Address(RVA = "0x7737B0", Offset = "0x7737B0", Length = "0x14")]
80 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WallDrawing), Member = "DrawWalls", MemberParameters = new object[]
81 {
84 typeof(int),
85 typeof(int),
86 typeof(int),
87 typeof(int)
88 }, ReturnType = typeof(void))]
89 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
90 public EffectPass GetWallEffect(int wallType, int paintColor)
91 {
92 throw null;
93 }
94
95 [global::Cpp2ILInjected.Token(Token = "0x60040BD")]
96 [global::Cpp2ILInjected.Address(RVA = "0x7738A8", Offset = "0x7738A8", Length = "0x38")]
97 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTreeBranchTexture", MemberParameters = new object[]
98 {
99 typeof(int),
100 typeof(int),
101 typeof(byte),
103 }, ReturnType = typeof(Texture2D))]
104 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
105 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TreePaintSystemData), Member = "GetTreeFoliageSettings", MemberParameters = new object[]
106 {
107 typeof(int),
108 typeof(int)
109 }, ReturnType = typeof(TreePaintingSettings))]
111 {
112 throw null;
113 }
114
115 [global::Cpp2ILInjected.Token(Token = "0x60040BE")]
116 [global::Cpp2ILInjected.Address(RVA = "0x7738E0", Offset = "0x7738E0", Length = "0x38")]
117 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "GetTreeTopTexture", MemberParameters = new object[]
118 {
119 typeof(int),
120 typeof(int),
121 typeof(byte),
123 }, ReturnType = typeof(Texture2D))]
124 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
125 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TreePaintSystemData), Member = "GetTreeFoliageSettings", MemberParameters = new object[]
126 {
127 typeof(int),
128 typeof(int)
129 }, ReturnType = typeof(TreePaintingSettings))]
130 public EffectPass GetTreeTopEffect(int treeTopIndex, int treeTopStyle, int paintColor)
131 {
132 throw null;
133 }
134
135 [global::Cpp2ILInjected.Token(Token = "0x60040BF")]
136 [global::Cpp2ILInjected.Address(RVA = "0x773918", Offset = "0x773918", Length = "0x228")]
137 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
138 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TilePaintSystemV2), Member = "CreateTileShaders", ReturnType = typeof(void))]
139 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TilePaintSystemV2), Member = "GetRealShader", MemberParameters = new object[]
140 {
141 typeof(int),
143 }, ReturnType = typeof(EffectPass))]
144 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 19)]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileShader), Member = "CreateNew", ReturnType = typeof(TileShader))]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EffectParameterCollection), Member = "get_Item", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(EffectParameter))]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EffectParameter), Member = "SetValue", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
148 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EffectParameter), Member = "SetValue", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
149 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TilePaintSystemV2), Member = "GetRealShader", MemberParameters = new object[]
150 {
151 typeof(int),
153 }, ReturnType = typeof(EffectPass))]
154 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 12)]
156 {
157 throw null;
158 }
159
160 [global::Cpp2ILInjected.Token(Token = "0x60040C0")]
161 [global::Cpp2ILInjected.Address(RVA = "0x773B40", Offset = "0x773B40", Length = "0x180")]
162 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "Initialize_AlmostEverything", ReturnType = typeof(void))]
163 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
164 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_tileShader", ReturnType = typeof(Effect))]
165 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TilePaintSystemV2), Member = "InitShader", MemberParameters = new object[] { typeof(TreePaintingSettings) }, ReturnType = typeof(Effect))]
166 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
167 public void CreateTileShaders()
168 {
169 throw null;
170 }
171
172 [global::Cpp2ILInjected.Token(Token = "0x60040C1")]
173 [global::Cpp2ILInjected.Address(RVA = "0x7737C4", Offset = "0x7737C4", Length = "0xE4")]
174 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
175 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TilePaintSystemV2), Member = "InitShader", MemberParameters = new object[] { typeof(TreePaintingSettings) }, ReturnType = typeof(Effect))]
176 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
177 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "ConvertPaintIdToTileShaderIndex", MemberParameters = new object[]
178 {
179 typeof(int),
180 typeof(bool),
181 typeof(bool)
182 }, ReturnType = typeof(int))]
183 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TilePaintSystemV2), Member = "InitShader", MemberParameters = new object[] { typeof(TreePaintingSettings) }, ReturnType = typeof(Effect))]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(EffectPassCollection), Member = "get_Item", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(EffectPass))]
185 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
186 public EffectPass GetRealShader(int paintColor, TreePaintingSettings settings)
187 {
188 throw null;
189 }
190
191 [global::Cpp2ILInjected.Token(Token = "0x60040C2")]
192 [global::Cpp2ILInjected.Address(RVA = "0x773798", Offset = "0x773798", Length = "0x18")]
193 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
194 public EffectPass GetShader(int paintColor, TreePaintingSettings settings)
195 {
196 throw null;
197 }
198
199 [global::Cpp2ILInjected.Token(Token = "0x60040C3")]
200 [global::Cpp2ILInjected.Address(RVA = "0x773CC0", Offset = "0x773CC0", Length = "0xAC")]
201 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "Initialize_AlmostEverything", ReturnType = typeof(void))]
202 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
203 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TreePaintSystemData), Member = ".ctor", ReturnType = typeof(void))]
204 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
205 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
207 {
208 throw null;
209 }
210
211 [global::Cpp2ILInjected.Token(Token = "0x4007E97")]
212 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
214
215 [global::Cpp2ILInjected.Token(Token = "0x4007E98")]
216 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
218
219 [global::Cpp2ILInjected.Token(Token = "0x4007E99")]
220 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
222
223 [global::Cpp2ILInjected.Token(Token = "0x4007E9A")]
224 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
226
227 [global::Cpp2ILInjected.Token(Token = "0x20007D4")]
228 public struct TileVariationkey
229 {
230 [global::Cpp2ILInjected.Token(Token = "0x60040C4")]
231 [global::Cpp2ILInjected.Address(RVA = "0x773D6C", Offset = "0x773D6C", Length = "0x34")]
232 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
233 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
235 {
236 throw null;
237 }
238
239 [global::Cpp2ILInjected.Token(Token = "0x60040C5")]
240 [global::Cpp2ILInjected.Address(RVA = "0x773DA0", Offset = "0x773DA0", Length = "0x98")]
241 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
242 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
243 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
244 public override bool Equals(object obj)
245 {
246 throw null;
247 }
248
249 [global::Cpp2ILInjected.Token(Token = "0x60040C6")]
250 [global::Cpp2ILInjected.Address(RVA = "0x773E38", Offset = "0x773E38", Length = "0x20")]
251 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
252 public override int GetHashCode()
253 {
254 throw null;
255 }
256
257 [global::Cpp2ILInjected.Token(Token = "0x60040C7")]
258 [global::Cpp2ILInjected.Address(RVA = "0x773E58", Offset = "0x773E58", Length = "0x30")]
259 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
260 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
262 {
263 throw null;
264 }
265
266 [global::Cpp2ILInjected.Token(Token = "0x60040C8")]
267 [global::Cpp2ILInjected.Address(RVA = "0x773E88", Offset = "0x773E88", Length = "0x30")]
268 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
269 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
271 {
272 throw null;
273 }
274
275 [global::Cpp2ILInjected.Token(Token = "0x4007E9B")]
276 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
277 public int TileType;
278
279 [global::Cpp2ILInjected.Token(Token = "0x4007E9C")]
280 [global::Cpp2ILInjected.FieldOffset(Offset = "0x4")]
281 public int TileStyle;
282
283 [global::Cpp2ILInjected.Token(Token = "0x4007E9D")]
284 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
285 public int PaintColor;
286 }
287
288 [global::Cpp2ILInjected.Token(Token = "0x20007D5")]
289 public struct WallVariationKey
290 {
291 [global::Cpp2ILInjected.Token(Token = "0x60040C9")]
292 [global::Cpp2ILInjected.Address(RVA = "0x773EB8", Offset = "0x773EB8", Length = "0x28")]
293 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
294 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
296 {
297 throw null;
298 }
299
300 [global::Cpp2ILInjected.Token(Token = "0x60040CA")]
301 [global::Cpp2ILInjected.Address(RVA = "0x773EE0", Offset = "0x773EE0", Length = "0x88")]
302 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
303 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
304 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
305 public override bool Equals(object obj)
306 {
307 throw null;
308 }
309
310 [global::Cpp2ILInjected.Token(Token = "0x60040CB")]
311 [global::Cpp2ILInjected.Address(RVA = "0x773F68", Offset = "0x773F68", Length = "0x14")]
312 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
313 public override int GetHashCode()
314 {
315 throw null;
316 }
317
318 [global::Cpp2ILInjected.Token(Token = "0x60040CC")]
319 [global::Cpp2ILInjected.Address(RVA = "0x773F7C", Offset = "0x773F7C", Length = "0x20")]
320 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
321 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
323 {
324 throw null;
325 }
326
327 [global::Cpp2ILInjected.Token(Token = "0x60040CD")]
328 [global::Cpp2ILInjected.Address(RVA = "0x773F9C", Offset = "0x773F9C", Length = "0x20")]
329 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
330 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
332 {
333 throw null;
334 }
335
336 [global::Cpp2ILInjected.Token(Token = "0x4007E9E")]
337 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
338 public int WallType;
339
340 [global::Cpp2ILInjected.Token(Token = "0x4007E9F")]
341 [global::Cpp2ILInjected.FieldOffset(Offset = "0x4")]
342 public int PaintColor;
343 }
344
345 [global::Cpp2ILInjected.Token(Token = "0x20007D6")]
347 {
348 [global::Cpp2ILInjected.Token(Token = "0x60040CE")]
349 [global::Cpp2ILInjected.Address(RVA = "0x773FBC", Offset = "0x773FBC", Length = "0x34")]
350 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
351 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
353 {
354 throw null;
355 }
356
357 [global::Cpp2ILInjected.Token(Token = "0x60040CF")]
358 [global::Cpp2ILInjected.Address(RVA = "0x773FF0", Offset = "0x773FF0", Length = "0x98")]
359 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
360 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
361 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
362 public override bool Equals(object obj)
363 {
364 throw null;
365 }
366
367 [global::Cpp2ILInjected.Token(Token = "0x60040D0")]
368 [global::Cpp2ILInjected.Address(RVA = "0x774088", Offset = "0x774088", Length = "0x20")]
369 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
370 public override int GetHashCode()
371 {
372 throw null;
373 }
374
375 [global::Cpp2ILInjected.Token(Token = "0x60040D1")]
376 [global::Cpp2ILInjected.Address(RVA = "0x7740A8", Offset = "0x7740A8", Length = "0x30")]
377 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
378 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
380 {
381 throw null;
382 }
383
384 [global::Cpp2ILInjected.Token(Token = "0x60040D2")]
385 [global::Cpp2ILInjected.Address(RVA = "0x7740D8", Offset = "0x7740D8", Length = "0x30")]
386 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
387 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
389 {
390 throw null;
391 }
392
393 [global::Cpp2ILInjected.Token(Token = "0x4007EA0")]
394 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
395 public int TextureIndex;
396
397 [global::Cpp2ILInjected.Token(Token = "0x4007EA1")]
398 [global::Cpp2ILInjected.FieldOffset(Offset = "0x4")]
399 public int TextureStyle;
400
401 [global::Cpp2ILInjected.Token(Token = "0x4007EA2")]
402 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
403 public int PaintColor;
404 }
405 }
406}
class f__AnonymousType0<< Count > j__TPar
EffectPass GetTreeBranchEffect(int treeTopIndex, int treeTopStyle, int paintColor)
EffectPass GetTileEffect(int tileType, int tileStyle, int paintColor)
Effect InitShader(TreePaintingSettings settings)
EffectPass GetTreeTopEffect(int treeTopIndex, int treeTopStyle, int paintColor)
EffectPass GetRealShader(int paintColor, TreePaintingSettings settings)
EffectPass GetWallEffect(int wallType, int paintColor)
EffectPass GetShader(int paintColor, TreePaintingSettings settings)
static bool operator!=(TilePaintSystemV2.TileVariationkey left, TilePaintSystemV2.TileVariationkey right)
bool Equals(TilePaintSystemV2.TileVariationkey other)
static bool operator==(TilePaintSystemV2.TileVariationkey left, TilePaintSystemV2.TileVariationkey right)
static bool operator==(TilePaintSystemV2.TreeFoliageVariantKey left, TilePaintSystemV2.TreeFoliageVariantKey right)
static bool operator!=(TilePaintSystemV2.TreeFoliageVariantKey left, TilePaintSystemV2.TreeFoliageVariantKey right)
bool Equals(TilePaintSystemV2.TreeFoliageVariantKey other)
static bool operator==(TilePaintSystemV2.WallVariationKey left, TilePaintSystemV2.WallVariationKey right)
bool Equals(TilePaintSystemV2.WallVariationKey other)
static bool operator!=(TilePaintSystemV2.WallVariationKey left, TilePaintSystemV2.WallVariationKey right)