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
PunchCameraModifier.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000772 RID: 1906
10 {
11 // Token: 0x17000794 RID: 1940
12 // (get) Token: 0x06003E70 RID: 15984 RVA: 0x0023D3D8 File Offset: 0x0023B5D8
13 // (set) Token: 0x06003E71 RID: 15985 RVA: 0x0023D3EC File Offset: 0x0023B5EC
14 public string UniqueIdentity
15 {
17 get
18 {
20 }
22 private set
23 {
25 }
26 }
27
28 // Token: 0x17000795 RID: 1941
29 // (get) Token: 0x06003E72 RID: 15986 RVA: 0x0023D400 File Offset: 0x0023B600
30 // (set) Token: 0x06003E73 RID: 15987 RVA: 0x0023D414 File Offset: 0x0023B614
31 public bool Finished
32 {
34 get
35 {
36 return this.<Finished>k__BackingField;
37 }
39 private set
40 {
41 }
42 }
43
44 // Token: 0x06003E74 RID: 15988 RVA: 0x0023D424 File Offset: 0x0023B624
45 public PunchCameraModifier(Vector2 startPosition, Vector2 direction, float strength, float vibrationCyclesPerSecond, int frames, float distanceFalloff = -1f, [Optional] string uniqueIdentity)
46 {
47 this._framesToLast = startPosition;
48 this.UniqueIdentity = direction;
49 }
50
51 // Token: 0x06003E75 RID: 15989 RVA: 0x0023D448 File Offset: 0x0023B648
53 {
54 int num = 1;
55 int framesLasted = this._framesLasted;
57 if (num == 0)
58 {
60 }
61 int num2 = 17008;
62 int framesToLast = this._framesToLast;
63 if (num2 == 0)
64 {
65 }
66 float x = this._startPosition.X;
67 float y = this._startPosition.Y;
68 float x2 = cameraInfo.OriginalCameraCenter.X;
69 float y2 = cameraInfo.OriginalCameraCenter.Y;
70 if (num2 == 0)
71 {
72 }
74 float y3 = this._direction.Y;
76 Vector2 cameraPosition = cameraInfo.CameraPosition;
77 float x3 = this._direction.X;
78 if (num2 == 0)
79 {
80 }
81 float strength = this._strength;
85 int num3 = 1;
86 this.<Finished>k__BackingField = num3 != 0;
87 }
88
89 // Token: 0x04007D24 RID: 32036
90 private int _framesToLast;
91
92 // Token: 0x04007D25 RID: 32037
94
95 // Token: 0x04007D26 RID: 32038
97
98 // Token: 0x04007D27 RID: 32039
99 private float _distanceFalloff;
100
101 // Token: 0x04007D28 RID: 32040
102 private float _strength;
103
104 // Token: 0x04007D29 RID: 32041
106
107 // Token: 0x04007D2A RID: 32042
108 private int _framesLasted;
109
110 // Token: 0x04007D2B RID: 32043
112 private string <UniqueIdentity>k__BackingField;
113
114 // Token: 0x04007D2C RID: 32044
116 private bool <Finished>k__BackingField;
117 }
118}
class f__AnonymousType0<< Count > j__TPar
PunchCameraModifier(Vector2 startPosition, Vector2 direction, float strength, float vibrationCyclesPerSecond, int frames, float distanceFalloff=-1f, [Optional] string uniqueIdentity)