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
SettingsForCharacterPreview.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000671 RID: 1649
10 {
11 // Token: 0x06003722 RID: 14114 RVA: 0x002211C4 File Offset: 0x0021F3C4
12 public void ApplyTo(Projectile proj, bool walking)
13 {
14 int num = 1;
15 float x = proj.position.X;
16 float y = proj.position.Y;
17 float x2 = this.Offset.X;
18 float y2 = this.Offset.Y;
19 if (num == 0)
20 {
21 }
22 int spriteDirection = this.SpriteDirection;
23 proj.spriteDirection = spriteDirection;
24 proj.direction = spriteDirection;
26 if (customAnimation != null)
27 {
28 IntPtr invoke_impl = customAnimation.invoke_impl;
29 IntPtr method_code = customAnimation.method_code;
30 IntPtr method = customAnimation.method;
31 return;
32 }
33 }
34
35 // Token: 0x06003723 RID: 14115 RVA: 0x0022124C File Offset: 0x0021F44C
36 public SettingsForCharacterPreview WhenSelected([Optional] int? startFrame, [Optional] int? frameCount, [Optional] int? delayPerFrame, [Optional] bool? bounceLoop)
37 {
38 return this;
39 }
40
41 // Token: 0x06003724 RID: 14116 RVA: 0x0022125C File Offset: 0x0021F45C
42 public SettingsForCharacterPreview WhenNotSelected([Optional] int? startFrame, [Optional] int? frameCount, [Optional] int? delayPerFrame, [Optional] bool? bounceLoop)
43 {
44 return this;
45 }
46
47 // Token: 0x06003725 RID: 14117 RVA: 0x000021DB File Offset: 0x000003DB
48 private static void Modify(SettingsForCharacterPreview.SelectionBasedSettings target, int? startFrame, int? frameCount, int? delayPerFrame, bool? bounceLoop)
49 {
50 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
51 }
52
53 // Token: 0x06003726 RID: 14118 RVA: 0x0022126C File Offset: 0x0021F46C
55 {
56 return this;
57 }
58
59 // Token: 0x06003727 RID: 14119 RVA: 0x0022127C File Offset: 0x0021F47C
60 public SettingsForCharacterPreview WithOffset(float x, float y)
61 {
62 return this;
63 }
64
65 // Token: 0x06003728 RID: 14120 RVA: 0x0022128C File Offset: 0x0021F48C
67 {
68 this.SpriteDirection = spriteDirection;
69 return this;
70 }
71
72 // Token: 0x06003729 RID: 14121 RVA: 0x002212A4 File Offset: 0x0021F4A4
78
79 // Token: 0x0600372A RID: 14122 RVA: 0x002212BC File Offset: 0x0021F4BC
81 {
82 }
83
84 // Token: 0x0400781C RID: 30748
86
87 // Token: 0x0400781D RID: 30749
89
90 // Token: 0x0400781E RID: 30750
92
93 // Token: 0x0400781F RID: 30751
94 public int SpriteDirection = 1;
95
96 // Token: 0x04007820 RID: 30752
98
99 // Token: 0x02000672 RID: 1650
101 {
102 // Token: 0x0600372B RID: 14123 RVA: 0x002212D8 File Offset: 0x0021F4D8
103 public CustomAnimationCode(object @object, IntPtr method)
104 {
106 this.m_target = @object;
108 this.method_code = this;
109 }
110
111 // Token: 0x0600372C RID: 14124 RVA: 0x00221338 File Offset: 0x0021F538
112 public void Invoke(Projectile proj, bool walking)
113 {
116 IntPtr method = this.method;
117 }
118
119 // Token: 0x0600372D RID: 14125 RVA: 0x000021DB File Offset: 0x000003DB
120 public IAsyncResult BeginInvoke(Projectile proj, bool walking, AsyncCallback callback, object @object)
121 {
122 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
123 }
124
125 // Token: 0x0600372E RID: 14126 RVA: 0x0022135C File Offset: 0x0021F55C
126 public void EndInvoke(IAsyncResult result)
127 {
128 }
129 }
130
131 // Token: 0x02000673 RID: 1651
133 {
134 // Token: 0x0600372F RID: 14127 RVA: 0x0022136C File Offset: 0x0021F56C
136 {
137 if (this.FrameCount != 0)
138 {
139 int frame = proj.frame;
140 int delayPerFrame = this.DelayPerFrame;
141 bool bounceLoop = this.BounceLoop;
142 int frameCounter = proj.frameCounter;
143 proj.frameCounter = frameCounter;
144 if (bounceLoop)
145 {
146 }
147 }
148 }
149
150 // Token: 0x04007821 RID: 30753
151 public int StartFrame;
152
153 // Token: 0x04007822 RID: 30754
154 public int FrameCount;
155
156 // Token: 0x04007823 RID: 30755
157 public int DelayPerFrame;
158
159 // Token: 0x04007824 RID: 30756
160 public bool BounceLoop;
161 }
162 }
163}
class f__AnonymousType0<< Count > j__TPar
IntPtr method_code
Definition Delegate.cs:386
IntPtr invoke_impl
Definition Delegate.cs:371
IAsyncResult BeginInvoke(Projectile proj, bool walking, AsyncCallback callback, object @object)
SettingsForCharacterPreview WhenNotSelected([Optional] int? startFrame, [Optional] int? frameCount, [Optional] int? delayPerFrame, [Optional] bool? bounceLoop)
SettingsForCharacterPreview WithOffset(float x, float y)
SettingsForCharacterPreview.CustomAnimationCode CustomAnimation
SettingsForCharacterPreview WithSpriteDirection(int spriteDirection)
SettingsForCharacterPreview WithCode(SettingsForCharacterPreview.CustomAnimationCode customAnimation)
SettingsForCharacterPreview WithOffset(Vector2 offset)
SettingsForCharacterPreview.SelectionBasedSettings Selected
static void Modify(SettingsForCharacterPreview.SelectionBasedSettings target, int? startFrame, int? frameCount, int? delayPerFrame, bool? bounceLoop)
SettingsForCharacterPreview WhenSelected([Optional] int? startFrame, [Optional] int? frameCount, [Optional] int? delayPerFrame, [Optional] bool? bounceLoop)
SettingsForCharacterPreview.SelectionBasedSettings NotSelected