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
SpriteViewMatrix.cs
Go to the documentation of this file.
1using System;
4
5namespace Terraria.Graphics
6{
7 // Token: 0x02000733 RID: 1843
8 public class SpriteViewMatrix
9 {
10 // Token: 0x17000775 RID: 1909
11 // (get) Token: 0x06003CF8 RID: 15608 RVA: 0x00237F74 File Offset: 0x00236174
12 // (set) Token: 0x06003CF9 RID: 15609 RVA: 0x00237F9C File Offset: 0x0023619C
14 {
15 get
16 {
17 float x = this._zoom.X;
18 float y = this._zoom.Y;
19 Vector2 vector;
20 return vector;
21 }
22 set
23 {
24 float x = this._zoom.X;
25 float y = this._zoom.Y;
26 if (!true)
27 {
28 }
29 this._needsRebuild = true;
30 }
31 }
32
33 // Token: 0x17000776 RID: 1910
34 // (get) Token: 0x06003CFA RID: 15610 RVA: 0x00237FD0 File Offset: 0x002361D0
36 {
37 get
38 {
39 bool flag = this.ShouldRebuild();
40 this.Rebuild();
41 float x = this._translation.X;
42 float y = this._translation.Y;
43 Vector2 vector;
44 return vector;
45 }
46 }
47
48 // Token: 0x17000777 RID: 1911
49 // (get) Token: 0x06003CFB RID: 15611 RVA: 0x00238004 File Offset: 0x00236204
51 {
52 get
53 {
54 bool flag = this.ShouldRebuild();
55 this.Rebuild();
56 float m = this._zoomMatrix.M31;
57 float m2 = this._zoomMatrix.M32;
58 float m3 = this._zoomMatrix.M11;
59 float m4 = this._zoomMatrix.M12;
61 matrix.M31 = m;
62 matrix.M32 = m2;
63 matrix.M11 = m3;
64 matrix.M12 = m4;
65 return matrix;
66 }
67 }
68
69 // Token: 0x17000778 RID: 1912
70 // (get) Token: 0x06003CFC RID: 15612 RVA: 0x00238070 File Offset: 0x00236270
72 {
73 get
74 {
75 bool flag = this.ShouldRebuild();
76 this.Rebuild();
77 float m = this._transformationMatrix.M31;
78 float m2 = this._transformationMatrix.M32;
79 float m3 = this._transformationMatrix.M11;
80 float m4 = this._transformationMatrix.M12;
82 matrix.M31 = m;
83 matrix.M32 = m2;
84 matrix.M11 = m3;
85 matrix.M12 = m4;
86 return matrix;
87 }
88 }
89
90 // Token: 0x17000779 RID: 1913
91 // (get) Token: 0x06003CFD RID: 15613 RVA: 0x002380DC File Offset: 0x002362DC
93 {
94 get
95 {
96 bool flag = this.ShouldRebuild();
97 this.Rebuild();
103 matrix.M31 = m;
104 matrix.M32 = m2;
105 matrix.M11 = m3;
106 matrix.M12 = m4;
107 return matrix;
108 }
109 }
110
111 // Token: 0x1700077A RID: 1914
112 // (get) Token: 0x06003CFE RID: 15614 RVA: 0x00238148 File Offset: 0x00236348
113 // (set) Token: 0x06003CFF RID: 15615 RVA: 0x0023815C File Offset: 0x0023635C
114 public SpriteEffects Effects
115 {
116 get
117 {
118 return this._effects;
119 }
120 set
121 {
124 this._needsRebuild = true;
125 }
126 }
127
128 // Token: 0x1700077B RID: 1915
129 // (get) Token: 0x06003D00 RID: 15616 RVA: 0x00238180 File Offset: 0x00236380
131 {
132 get
133 {
134 bool flag = this.ShouldRebuild();
135 this.Rebuild();
137 float m = matrix.M31;
138 float m2 = matrix.M32;
139 matrix.M31 = m;
140 matrix.M32 = m2;
141 return matrix;
142 }
143 }
144
145 // Token: 0x06003D01 RID: 15617 RVA: 0x002381B8 File Offset: 0x002363B8
146 public SpriteViewMatrix(GraphicsDevice graphicsDevice)
147 {
148 if (!true)
149 {
150 }
151 if (!true)
152 {
153 }
154 this._zoom = 1;
155 if (!true)
156 {
157 }
159 if (!true)
160 {
161 }
162 if (true)
163 {
164 return;
165 }
166 if (true)
167 {
168 return;
169 }
170 if (!true)
171 {
172 }
173 this._needsRebuild = true;
174 base..ctor();
175 this._graphicsDevice = graphicsDevice;
176 }
177
178 // Token: 0x06003D02 RID: 15618 RVA: 0x00238200 File Offset: 0x00236400
179 private void Rebuild()
180 {
182 if (!overrideSystemViewport)
183 {
184 Viewport viewport = this._graphicsDevice.Viewport;
186 }
187 int width = this._viewport.width;
188 int height = this._viewport.height;
189 if (!overrideSystemViewport)
190 {
191 }
192 int num = 1;
193 if (num == 0)
194 {
195 }
196 int value = num.m_value;
197 if (this._effects == SpriteEffects.None)
198 {
199 }
201 if (effects == SpriteEffects.None)
202 {
203 }
204 if (effects == SpriteEffects.None)
205 {
206 }
207 float x = this._zoom.X;
208 float y = this._zoom.Y;
209 if (effects == SpriteEffects.None)
210 {
211 }
212 float x2 = this._zoom.X;
213 float y2 = this._zoom.Y;
218 float m = this._zoomMatrix.M31;
219 float m2 = this._zoomMatrix.M32;
220 float m3 = this._zoomMatrix.M11;
221 float m4 = this._zoomMatrix.M12;
226 }
227
228 // Token: 0x06003D03 RID: 15619 RVA: 0x00238350 File Offset: 0x00236550
229 public void SetViewportOverride(Viewport viewport)
230 {
231 float minDepth = viewport.minDepth;
233 this._viewport.minDepth = minDepth;
234 }
235
236 // Token: 0x06003D04 RID: 15620 RVA: 0x00238378 File Offset: 0x00236578
238 {
239 }
240
241 // Token: 0x06003D05 RID: 15621 RVA: 0x00238388 File Offset: 0x00236588
242 private bool ShouldRebuild()
243 {
244 for (;;)
245 {
246 bool needsRebuild = this._needsRebuild;
247 if (needsRebuild)
248 {
249 break;
250 }
251 if (needsRebuild)
252 {
253 return;
254 }
255 }
256 return true;
257 }
258
259 // Token: 0x04007BF3 RID: 31731
260 private Vector2 _zoom;
261
262 // Token: 0x04007BF4 RID: 31732
264
265 // Token: 0x04007BF5 RID: 31733
267
268 // Token: 0x04007BF6 RID: 31734
270
271 // Token: 0x04007BF7 RID: 31735
273
274 // Token: 0x04007BF8 RID: 31736
276
277 // Token: 0x04007BF9 RID: 31737
279
280 // Token: 0x04007BFA RID: 31738
282
283 // Token: 0x04007BFB RID: 31739
285
286 // Token: 0x04007BFC RID: 31740
288
289 // Token: 0x04007BFD RID: 31741
290 private bool _needsRebuild;
291 }
292}
class f__AnonymousType0<< Count > j__TPar
SpriteViewMatrix(GraphicsDevice graphicsDevice)
void SetViewportOverride(Viewport viewport)
static Matrix Invert(Matrix matrix)
Definition Matrix.cs:971