terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
ResourceDrawSettings.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x02000A88 RID: 2696
12 {
13 // Token: 0x06004FA7 RID: 20391 RVA: 0x0027AFEC File Offset: 0x002791EC
14 public void Draw(SpriteBatch spriteBatch, bool isHovered)
15 {
16 int elementCount = this.ElementCount;
18 if (elementCount == 0)
19 {
20 }
22 if (elementCount == 0)
23 {
24 }
27 IntPtr invoke_impl = getTextureMethod.invoke_impl;
28 IntPtr method_code = getTextureMethod.method_code;
29 IntPtr method = getTextureMethod.method;
30 if (method == 0)
31 {
32 }
33 if (method != 0)
34 {
35 }
36 float x = this.OffsetSpriteAnchor.X;
37 float y = this.OffsetSpriteAnchor.Y;
39 Vector2 vector = rectangle.Size();
42 float x3 = this.OffsetPerDraw.X;
43 float y3 = this.OffsetPerDraw.Y;
44 Vector2 vector2 = rectangle.Size();
47 }
48
49 // Token: 0x04008890 RID: 34960
51
52 // Token: 0x04008891 RID: 34961
53 public int ElementCount;
54
55 // Token: 0x04008892 RID: 34962
57
58 // Token: 0x04008893 RID: 34963
60
61 // Token: 0x04008894 RID: 34964
63
64 // Token: 0x04008895 RID: 34965
66
67 // Token: 0x04008896 RID: 34966
69
70 // Token: 0x04008897 RID: 34967
72
73 // Token: 0x02000A89 RID: 2697
74 public sealed class TextureGetter : MulticastDelegate
75 {
76 // Token: 0x06004FA8 RID: 20392 RVA: 0x0027B0DC File Offset: 0x002792DC
77 public TextureGetter(object @object, IntPtr method)
78 {
80 this.m_target = @object;
82 this.method_code = this;
83 }
84
85 // Token: 0x06004FA9 RID: 20393 RVA: 0x0027B130 File Offset: 0x00279330
86 public void Invoke(int elementIndex, int firstElementIndex, int lastElementIndex, [Out] Asset<Texture2D> texture, [Out] Vector2 drawOffset, [Out] float drawScale, [Out] Rectangle? sourceRect)
87 {
90 IntPtr method = this.method;
91 }
92
93 // Token: 0x06004FAA RID: 20394 RVA: 0x000021DB File Offset: 0x000003DB
94 public IAsyncResult BeginInvoke(int elementIndex, int firstElementIndex, int lastElementIndex, [Out] Asset<Texture2D> texture, [Out] Vector2 drawOffset, [Out] float drawScale, [Out] Rectangle? sourceRect, AsyncCallback callback, object @object)
95 {
96 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
97 }
98
99 // Token: 0x06004FAB RID: 20395 RVA: 0x0027B154 File Offset: 0x00279354
100 public void EndInvoke([Out] Asset<Texture2D> texture, [Out] Vector2 drawOffset, [Out] float drawScale, [Out] Rectangle? sourceRect, IAsyncResult result)
101 {
102 }
103 }
104 }
105}
class f__AnonymousType0<< Count > j__TPar
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
IAsyncResult BeginInvoke(int elementIndex, int firstElementIndex, int lastElementIndex, [Out] Asset< Texture2D > texture, [Out] Vector2 drawOffset, [Out] float drawScale, [Out] Rectangle? sourceRect, AsyncCallback callback, object @object)
void Invoke(int elementIndex, int firstElementIndex, int lastElementIndex, [Out] Asset< Texture2D > texture, [Out] Vector2 drawOffset, [Out] float drawScale, [Out] Rectangle? sourceRect)
void EndInvoke([Out] Asset< Texture2D > texture, [Out] Vector2 drawOffset, [Out] float drawScale, [Out] Rectangle? sourceRect, IAsyncResult result)
static Microsoft.Xna.Framework.Vector2 MouseScreen
Definition Main.cs:4441
void Draw(SpriteBatch spriteBatch, bool isHovered)