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
SpriteBatch.cs
Go to the documentation of this file.
1using System;
4using System.Text;
8using UnityEngine;
9
11{
12 // Token: 0x0200038C RID: 908
14 {
15 // Token: 0x0600180B RID: 6155 RVA: 0x00066174 File Offset: 0x00064374
17 {
20 this._spriteEffect = effect;
21 EffectTechnique <CurrentTechnique>k__BackingField = effect.<CurrentTechnique>k__BackingField;
22 long num = 0L;
23 EffectPass effectPass = <CurrentTechnique>k__BackingField.<Passes>k__BackingField[(int)num];
25 }
26
27 // Token: 0x0600180C RID: 6156 RVA: 0x000661CC File Offset: 0x000643CC
29 {
30 /*
31An exception occurred when decompiling this method (0600180C)
32
33ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Microsoft.Xna.Framework.Graphics.SpriteBatch::Begin(Microsoft.Xna.Framework.Graphics.SpriteSortMode,System.Boolean,System.Boolean)
34
35 ---> System.Exception: Basic block has to end with unconditional control flow.
36{
37 IL_0041:
38 call:void(Debug::LogError, ldstr:string[exp:object]("End must be called before calling Begin."))
39}
40
41 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
42 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
43 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
44 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
45 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
46 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
47 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
48 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
49 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
50 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
51 --- End of inner exception stack trace ---
52 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
53 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
54*/;
55 }
56
57 // Token: 0x0600180D RID: 6157 RVA: 0x00066224 File Offset: 0x00064424
58 public void Begin(SpriteSortMode sortMode = SpriteSortMode.Deferred, [Optional] BlendState blendState, [Optional] SamplerState samplerState, [Optional] DepthStencilState depthStencilState, [Optional] RasterizerState rasterizerState, [Optional] Effect effect, [Optional] Matrix? transformMatrix, bool defferedBatch = true)
59 {
60 /*
61An exception occurred when decompiling this method (0600180D)
62
63ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Microsoft.Xna.Framework.Graphics.SpriteBatch::Begin(Microsoft.Xna.Framework.Graphics.SpriteSortMode,Microsoft.Xna.Framework.Graphics.BlendState,Microsoft.Xna.Framework.Graphics.SamplerState,Microsoft.Xna.Framework.Graphics.DepthStencilState,Microsoft.Xna.Framework.Graphics.RasterizerState,Microsoft.Xna.Framework.Graphics.Effect,System.Nullable`1<Microsoft.Xna.Framework.Matrix>,System.Boolean)
64
65 ---> System.Exception: Basic block has to end with unconditional control flow.
66{
67 IL_003E:
68 call:void(Debug::LogError, ldstr:string[exp:object]("End must be called before calling Begin."))
69}
70
71 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
72 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
73 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
74 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
75 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
76 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
77 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
78 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
79 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
80 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
81 --- End of inner exception stack trace ---
82 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
83 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
84*/;
85 }
86
87 // Token: 0x0600180E RID: 6158 RVA: 0x00066278 File Offset: 0x00064478
88 public void End()
89 {
90 if (!this._beginCalled)
91 {
92 Debug.LogError("Begin must be called before calling End.");
93 return;
94 }
98 bool batchDeffered = this.BatchDeffered;
100 Effect effect = this._effect;
101 bool hasMatrix = this._hasMatrix;
102 if (!batchDeffered)
103 {
104 return;
105 }
107 if (firstBatchList != null)
108 {
110 return;
111 }
112 }
113
114 // Token: 0x0600180F RID: 6159 RVA: 0x000662E8 File Offset: 0x000644E8
115 public void Flush()
116 {
117 this._batcher.FlushBatches();
118 }
119
120 // Token: 0x06001810 RID: 6160 RVA: 0x00066300 File Offset: 0x00064500
121 private void Setup()
122 {
124 }
125
126 // Token: 0x06001811 RID: 6161 RVA: 0x00066314 File Offset: 0x00064514
127 private void CheckValid(Texture2D texture)
128 {
129 while (texture != null)
130 {
131 if (this._beginCalled)
132 {
133 return;
134 }
135 }
136 }
137
138 // Token: 0x06001812 RID: 6162 RVA: 0x00066330 File Offset: 0x00064530
139 private void CheckValid(SpriteFont spriteFont, string text)
140 {
141 while (spriteFont != null)
142 {
143 if (text == null)
144 {
145 return;
146 }
147 if (this._beginCalled)
148 {
149 return;
150 }
151 }
152 }
153
154 // Token: 0x06001813 RID: 6163 RVA: 0x00066350 File Offset: 0x00064550
156 {
157 while (spriteFont != null)
158 {
159 if (text == null)
160 {
161 return;
162 }
163 if (this._beginCalled)
164 {
165 return;
166 }
167 }
168 }
169
170 // Token: 0x06001814 RID: 6164 RVA: 0x000021DB File Offset: 0x000003DB
171 public void Draw(Texture2D texture, [Optional] Vector2? position, [Optional] Rectangle? destinationRectangle, [Optional] Rectangle? sourceRectangle, [Optional] Vector2? origin, float rotation = 0f, [Optional] Vector2? scale, [Optional] Color? color, SpriteEffects effects = SpriteEffects.None, float layerDepth = 0f)
172 {
173 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
174 }
175
176 // Token: 0x06001815 RID: 6165 RVA: 0x000021DB File Offset: 0x000003DB
177 public void Draw(Texture2D texture, Vector2? position, Rectangle? destinationRectangle, Rectangle? sourceRectangle, Vector2? origin, float rotation, Vector2? scale, VertexColors color, SpriteEffects effects = SpriteEffects.None, float layerDepth = 0f)
178 {
179 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
180 }
181
182 // Token: 0x06001816 RID: 6166 RVA: 0x00066370 File Offset: 0x00064570
183 [Il2CppSetOption(Option.NullChecks, false)]
184 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
186 {
187 do
188 {
191 SpriteBatchItem[] batchItemList = batcher._batchItemList;
192 GraphicsDevice device = batcher._device;
193 SpriteBatchItem[] batchItemList2 = batcher._batchItemList;
195 if (overloadedEffectPass != null)
196 {
198 }
200 if (this.BatchDeffered)
201 {
202 int lastBatchListId = batcher._lastBatchListId;
204 }
206 if (lastBatchItem != null)
207 {
208 }
214 if (batcher3._batchItemList != null)
215 {
216 int batchItemCount = batcher3._batchItemCount;
217 }
219 {
221 if (firstBatchList != null)
222 {
224 }
225 if (this._lastBatchList == null)
226 {
228 }
230 }
231 if (texture.SharedBatching)
232 {
234 if (lastBatchList2 != null)
235 {
237 }
238 if (this._firstBatchList == null)
239 {
241 }
243 }
244 }
245 while (texture.NonSharedHeadInsert);
246 throw new ArrayTypeMismatchException();
247 }
248
249 // Token: 0x06001817 RID: 6167 RVA: 0x000664A8 File Offset: 0x000646A8
250 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
251 [Il2CppSetOption(Option.NullChecks, false)]
252 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects = SpriteEffects.None)
253 {
255 float texelWidth = texture.TexelWidth;
256 float texelHeight = texture.TexelHeight;
257 int width = srcRect.Width;
258 int y = srcRect.Y;
262 float x = position.X;
263 float y2 = position.Y;
264 }
265
266 // Token: 0x06001818 RID: 6168 RVA: 0x0006653C File Offset: 0x0006473C
267 [Il2CppSetOption(Option.NullChecks, false)]
268 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
269 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects = SpriteEffects.None)
270 {
272 int width = srcRect.Width;
273 int y = srcRect.Y;
274 float x = position.X;
275 float y2 = position.Y;
276 }
277
278 // Token: 0x06001819 RID: 6169 RVA: 0x0006659C File Offset: 0x0006479C
279 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
280 [Il2CppSetOption(Option.NullChecks, false)]
281 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, float scale)
282 {
284 int width = srcRect.Width;
285 float texelWidth = texture.TexelWidth;
286 srcRect.X = (int)texelWidth;
287 float x = position.X;
288 float y = position.Y;
289 }
290
291 // Token: 0x0600181A RID: 6170 RVA: 0x00066600 File Offset: 0x00064800
292 public void Draw(Texture2D texture, Vector2 position, Color color, float rotation, Vector2 origin, float scale)
293 {
295 int width = texture.Width;
296 int height = texture.Height;
297 if (!true)
298 {
299 }
300 if (!true)
301 {
302 }
303 float x = position.X;
304 float y = position.Y;
305 }
306
307 // Token: 0x0600181B RID: 6171 RVA: 0x00066668 File Offset: 0x00064868
308 public void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
309 {
311 float texelWidth = texture.TexelWidth;
312 float texelHeight = texture.TexelHeight;
315 float y = this._texCoordTL.Y;
318 }
319
320 // Token: 0x0600181C RID: 6172 RVA: 0x00066720 File Offset: 0x00064920
321 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
322 {
324 float texelWidth = texture.TexelWidth;
325 float texelHeight = texture.TexelHeight;
326 float y = position.Y;
331 }
332
333 // Token: 0x0600181D RID: 6173 RVA: 0x000667A0 File Offset: 0x000649A0
334 public void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, VertexColors color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
335 {
337 float y = position.Y;
338 float texelWidth = texture.TexelWidth;
339 float texelHeight = texture.TexelHeight;
342 float y2 = this._texCoordTL.Y;
347 }
348
349 // Token: 0x0600181E RID: 6174 RVA: 0x00066874 File Offset: 0x00064A74
350 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, VertexColors color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
351 {
353 float texelWidth = texture.TexelWidth;
354 float texelHeight = texture.TexelHeight;
355 float y = position.Y;
359 }
360
361 // Token: 0x0600181F RID: 6175 RVA: 0x000668F0 File Offset: 0x00064AF0
362 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, VertexColors color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)
363 {
365 float texelWidth = texture.TexelWidth;
366 float texelHeight = texture.TexelHeight;
367 float y = position.Y;
371 }
372
373 // Token: 0x06001820 RID: 6176 RVA: 0x0006696C File Offset: 0x00064B6C
374 public static void ForceDrawScale(float scale, Vector2 origin, Vector2 position)
375 {
376 if (!true)
377 {
378 }
379 }
380
381 // Token: 0x06001821 RID: 6177 RVA: 0x0006697C File Offset: 0x00064B7C
382 public static void ClearDrawScale()
383 {
384 if (!true)
385 {
386 }
387 }
388
389 // Token: 0x06001822 RID: 6178 RVA: 0x0006698C File Offset: 0x00064B8C
390 public static void TransformPosition(Vector2 position, Vector2 scale)
391 {
392 float x = position.X;
393 float y = position.Y;
394 if (!true)
395 {
396 }
397 float x2 = scale.X;
398 float y2 = scale.Y;
399 scale.X = x2;
400 scale.Y = y2;
401 }
402
403 // Token: 0x06001823 RID: 6179 RVA: 0x000669D8 File Offset: 0x00064BD8
404 public void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth = 0f)
405 {
406 }
407
408 // Token: 0x06001824 RID: 6180 RVA: 0x000669E8 File Offset: 0x00064BE8
409 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color)
410 {
412 int width = srcRect.Width;
413 int height = srcRect.Height;
414 float texelWidth = texture.TexelWidth;
415 float x = position.X;
416 float y = position.Y;
418 if (this.BatchDeffered)
419 {
420 return;
421 }
423 Effect effect = this._effect;
424 batcher.DrawImmediateBatch(effect);
425 }
426
427 // Token: 0x06001825 RID: 6181 RVA: 0x00066A4C File Offset: 0x00064C4C
428 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, VertexColors color)
429 {
431 int width = srcRect.Width;
432 int height = srcRect.Height;
433 float texelWidth = texture.TexelWidth;
434 float x = position.X;
435 float y = position.Y;
437 if (this.BatchDeffered)
438 {
439 return;
440 }
442 Effect effect = this._effect;
443 batcher.DrawImmediateBatch(effect);
444 }
445
446 // Token: 0x06001826 RID: 6182 RVA: 0x00066AB0 File Offset: 0x00064CB0
447 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, SpriteEffects effects)
448 {
450 int width = srcRect.Width;
451 int height = srcRect.Height;
452 float texelWidth = texture.TexelWidth;
453 float texelHeight = texture.TexelHeight;
455 this._texCoordTL.X = (float)width;
456 int y = srcRect.Y;
458 this._texCoordTL.Y = (float)y;
459 float x = position.X;
460 float y2 = position.Y;
462 if (this.BatchDeffered)
463 {
464 return;
465 }
467 Effect effect = this._effect;
468 batcher.DrawImmediateBatch(effect);
469 }
470
471 // Token: 0x06001827 RID: 6183 RVA: 0x00066B58 File Offset: 0x00064D58
472 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, VertexColors color, SpriteEffects effects)
473 {
475 int width = srcRect.Width;
476 int height = srcRect.Height;
477 float texelWidth = texture.TexelWidth;
478 float texelHeight = texture.TexelHeight;
480 this._texCoordTL.X = (float)width;
481 int y = srcRect.Y;
483 this._texCoordTL.Y = (float)y;
484 float x = position.X;
485 float y2 = position.Y;
487 if (this.BatchDeffered)
488 {
489 return;
490 }
492 Effect effect = this._effect;
493 batcher.DrawImmediateBatch(effect);
494 }
495
496 // Token: 0x06001828 RID: 6184 RVA: 0x00066C00 File Offset: 0x00064E00
497 public void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth = 0f)
498 {
500 float texelWidth = texture.TexelWidth;
501 float texelHeight = texture.TexelHeight;
502 float y = position.Y;
507 }
508
509 // Token: 0x06001829 RID: 6185 RVA: 0x00066C80 File Offset: 0x00064E80
510 public void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, VertexColors color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth = 0f)
511 {
512 }
513
514 // Token: 0x0600182A RID: 6186 RVA: 0x00066C90 File Offset: 0x00064E90
516 {
518 float texelWidth = texture.TexelWidth;
519 float texelHeight = texture.TexelHeight;
520 }
521
522 // Token: 0x0600182B RID: 6187 RVA: 0x00066D2C File Offset: 0x00064F2C
524 {
528 float texelWidth = texture.TexelWidth;
530 float texelHeight = texture.TexelHeight;
531 if (bottomRightColor2 != null)
532 {
533 return;
534 }
535 float y = this._texCoordTL.Y;
539 int num;
540 this._texCoordTL = num;
542 }
543
544 // Token: 0x0600182C RID: 6188 RVA: 0x00066E0C File Offset: 0x0006500C
545 internal void FlushIfNeeded()
546 {
548 if (this.BatchDeffered)
549 {
550 return;
551 }
553 Effect effect = this._effect;
554 batcher.DrawImmediateBatch(effect);
555 }
556
557 // Token: 0x0600182D RID: 6189 RVA: 0x00066E40 File Offset: 0x00065040
558 public void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color)
559 {
561 float y = position.Y;
562 float texelWidth = texture.TexelWidth;
563 }
564
565 // Token: 0x0600182E RID: 6190 RVA: 0x00066EA4 File Offset: 0x000650A4
566 public void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, VertexColors color)
567 {
569 float y = position.Y;
570 float texelWidth = texture.TexelWidth;
571 }
572
573 // Token: 0x0600182F RID: 6191 RVA: 0x00066F08 File Offset: 0x00065108
575 {
577 float texelWidth = texture.TexelWidth;
578 }
579
580 // Token: 0x06001830 RID: 6192 RVA: 0x00066F54 File Offset: 0x00065154
581 public void Draw(Texture2D texture, Vector2 position, Color color)
582 {
584 if (!true)
585 {
586 }
587 if (!true)
588 {
589 }
590 int width = texture.Width;
591 int height = texture.Height;
593 if (!this.BatchDeffered)
594 {
596 Effect effect = this._effect;
597 batcher.DrawImmediateBatch(effect);
598 }
599 }
600
601 // Token: 0x06001831 RID: 6193 RVA: 0x00066FA8 File Offset: 0x000651A8
602 public void Draw(Texture2D texture, Rectangle destinationRectangle, Color color)
603 {
605 if (!true)
606 {
607 }
608 if (!true)
609 {
610 }
612 if (!this.BatchDeffered)
613 {
615 Effect effect = this._effect;
616 batcher.DrawImmediateBatch(effect);
617 }
618 }
619
620 // Token: 0x06001832 RID: 6194 RVA: 0x00066FE8 File Offset: 0x000651E8
621 public void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color)
622 {
623 this.CheckValid(spriteFont, text);
624 SpriteFont.Glyph[] glyphs = spriteFont._glyphs;
625 if (glyphs != null && glyphs.Cropping.Y != 0)
626 {
627 return;
628 }
629 int stringLength = text._stringLength;
630 long num = 0L;
631 char c = text[(int)num];
632 int <LineSpacing>k__BackingField = spriteFont.<LineSpacing>k__BackingField;
633 }
634
635 // Token: 0x06001833 RID: 6195 RVA: 0x00067094 File Offset: 0x00065294
637 {
638 this.CheckValid(spriteFont, text);
639 if (this._lastViewport.y == 0)
640 {
641 }
642 int num = 1;
643 if (num == 0)
644 {
645 }
646 int value = num.m_value;
647 SpriteFont.Glyph[] glyphs = spriteFont._glyphs;
648 if (glyphs != null && glyphs.Cropping.Y != 0)
649 {
650 return;
651 }
652 int length = text.Length;
653 long num2 = 0L;
654 char c = text[(int)num2];
655 int <LineSpacing>k__BackingField = spriteFont.<LineSpacing>k__BackingField;
656 }
657
658 // Token: 0x06001834 RID: 6196 RVA: 0x00067180 File Offset: 0x00065380
659 public void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)
660 {
661 }
662
663 // Token: 0x06001835 RID: 6197 RVA: 0x00067190 File Offset: 0x00065390
664 public void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)
665 {
666 }
667
668 // Token: 0x06001836 RID: 6198 RVA: 0x000671A0 File Offset: 0x000653A0
669 public void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
670 {
671 int num = 1;
672 this.CheckValid(spriteFont, text);
673 if (num == 0)
674 {
675 }
676 int num2 = 1;
677 if (num2 == 0)
678 {
679 }
680 int value = num2.m_value;
681 if (num2 != 0)
682 {
683 int <LineSpacing>k__BackingField = spriteFont.<LineSpacing>k__BackingField;
684 }
685 if (num2 == 0)
686 {
687 }
688 int num3 = 1;
689 if (num3 == 0)
690 {
691 }
692 int value2 = num3.m_value;
693 }
694
695 // Token: 0x06001837 RID: 6199 RVA: 0x000672AC File Offset: 0x000654AC
696 public void DrawStringMultiLineRight(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
697 {
698 int num = 1;
699 this.CheckValid(spriteFont, text);
700 if (num == 0)
701 {
702 }
703 int num2 = 1;
704 if (num2 == 0)
705 {
706 }
707 int value = num2.m_value;
708 if (num2 != 0)
709 {
710 if (color != null)
711 {
712 }
713 int <LineSpacing>k__BackingField = spriteFont.<LineSpacing>k__BackingField;
714 }
715 int num3 = 1;
716 if (num3 == 0)
717 {
718 }
719 int value2 = num3.m_value;
720 }
721
722 // Token: 0x06001838 RID: 6200 RVA: 0x00067448 File Offset: 0x00065648
723 public void DrawStringMultiLineCentre(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
724 {
725 int num = 1;
726 this.CheckValid(spriteFont, text);
727 if (num == 0)
728 {
729 }
730 int num2 = 1;
731 if (num2 == 0)
732 {
733 }
734 int value = num2.m_value;
735 if (num2 != 0)
736 {
737 if (color != null)
738 {
739 }
740 int <LineSpacing>k__BackingField = spriteFont.<LineSpacing>k__BackingField;
741 }
742 if (num2 == 0)
743 {
744 }
745 int num3 = 1;
746 if (num3 == 0)
747 {
748 }
749 int value2 = num3.m_value;
750 }
751
752 // Token: 0x06001839 RID: 6201 RVA: 0x000675D0 File Offset: 0x000657D0
753 public void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
754 {
755 int num = 1;
756 this.CheckValid(spriteFont, text);
757 if (num == 0)
758 {
759 }
760 int num2 = 1;
761 if (num2 == 0)
762 {
763 }
764 int value = num2.m_value;
765 if (num2 != 0)
766 {
767 int <LineSpacing>k__BackingField = spriteFont.<LineSpacing>k__BackingField;
768 }
769 if (num2 == 0)
770 {
771 }
772 int num3 = 1;
773 if (num3 == 0)
774 {
775 }
776 int value2 = num3.m_value;
777 }
778
779 // Token: 0x0600183A RID: 6202 RVA: 0x000676B8 File Offset: 0x000658B8
780 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
781 [Il2CppSetOption(Option.NullChecks, false)]
782 public void DrawString(SpriteFont spriteFont, string text, int start, int end, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, Vector2[] offsets)
783 {
784 int num = 1;
785 this.CheckValid(spriteFont, text);
786 if (num == 0)
787 {
788 }
789 int num2 = 1;
790 if (num2 == 0)
791 {
792 }
793 int value = num2.m_value;
794 }
795
796 // Token: 0x0600183B RID: 6203 RVA: 0x0006774C File Offset: 0x0006594C
797 [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
798 [Il2CppSetOption(Option.NullChecks, false)]
799 public void DrawString(SpriteFont spriteFont, StringBuilder text, int start, int end, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, Vector2[] offsets)
800 {
801 int num = 1;
802 this.CheckValid(spriteFont, text);
803 if (num == 0)
804 {
805 }
806 int num2 = 1;
807 if (num2 == 0)
808 {
809 }
810 int value = num2.m_value;
811 if (text.m_ChunkChars != null)
812 {
813 return;
814 }
815 }
816
817 // Token: 0x0600183C RID: 6204 RVA: 0x00067810 File Offset: 0x00065A10
818 public void DrawString(SpriteFont spriteFont, string text, int start, int end, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
819 {
820 int num = 1;
821 this.CheckValid(spriteFont, text);
822 if (num == 0)
823 {
824 }
825 int num2 = 1;
826 if (num2 == 0)
827 {
828 }
829 int value = num2.m_value;
830 if (num2 != 0)
831 {
832 int <LineSpacing>k__BackingField = spriteFont.<LineSpacing>k__BackingField;
833 }
834 if (num2 == 0)
835 {
836 }
837 int num3 = 1;
838 if (num3 == 0)
839 {
840 }
841 int value2 = num3.m_value;
842 }
843
844 // Token: 0x0600183D RID: 6205 RVA: 0x00067938 File Offset: 0x00065B38
845 public void DrawString(SpriteFont spriteFont, StringBuilder text, int start, int end, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
846 {
847 int num = 1;
848 this.CheckValid(spriteFont, text);
849 if (num == 0)
850 {
851 }
852 int num2 = 1;
853 if (num2 == 0)
854 {
855 }
856 int value = num2.m_value;
857 if (num2 != 0)
858 {
859 int <LineSpacing>k__BackingField = spriteFont.<LineSpacing>k__BackingField;
860 }
861 if (num2 == 0)
862 {
863 }
864 int num3 = 1;
865 if (num3 == 0)
866 {
867 }
868 int value2 = num3.m_value;
869 }
870
871 // Token: 0x0600183E RID: 6206 RVA: 0x00067A6C File Offset: 0x00065C6C
872 // Note: this type is marked as 'beforefieldinit'.
873 static SpriteBatch()
874 {
875 if (!true)
876 {
877 }
878 }
879
880 // Token: 0x0400264D RID: 9805
881 public bool BatchDeffered;
882
883 // Token: 0x0400264E RID: 9806
885
886 // Token: 0x0400264F RID: 9807
888
889 // Token: 0x04002650 RID: 9808
891
892 // Token: 0x04002651 RID: 9809
894
895 // Token: 0x04002652 RID: 9810
897
898 // Token: 0x04002653 RID: 9811
900
901 // Token: 0x04002654 RID: 9812
903
904 // Token: 0x04002655 RID: 9813
905 public bool _beginCalled;
906
907 // Token: 0x04002656 RID: 9814
908 private int _batchOffset;
909
910 // Token: 0x04002657 RID: 9815
912
913 // Token: 0x04002658 RID: 9816
915
916 // Token: 0x04002659 RID: 9817
918
919 // Token: 0x0400265A RID: 9818
921
922 // Token: 0x0400265B RID: 9819
924
925 // Token: 0x0400265C RID: 9820
927
928 // Token: 0x0400265D RID: 9821
929 private bool _hasMatrix;
930
931 // Token: 0x0400265E RID: 9822
933
934 // Token: 0x0400265F RID: 9823
936
937 // Token: 0x04002660 RID: 9824
939
940 // Token: 0x04002661 RID: 9825
942
943 // Token: 0x04002662 RID: 9826
945
946 // Token: 0x04002663 RID: 9827
947 internal static bool NeedsHalfPixelOffset;
948
949 // Token: 0x04002664 RID: 9828
950 public static string LastBeginCall;
951
952 // Token: 0x04002665 RID: 9829
954
955 // Token: 0x04002666 RID: 9830
956 public static bool forceDrawScale;
957
958 // Token: 0x04002667 RID: 9831
960
961 // Token: 0x04002668 RID: 9832
963
964 // Token: 0x04002669 RID: 9833
966
967 // Token: 0x0400266A RID: 9834
969
970 // Token: 0x0400266B RID: 9835
972
973 // Token: 0x0400266C RID: 9836
975 }
976}
class f__AnonymousType0<< Count > j__TPar
void Begin(SpriteSortMode sortMode, bool useTransformMatrix, bool defferedBatch)
void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, SpriteEffects effects)
static void TransformPosition(Vector2 position, Vector2 scale)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, VertexColors color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)
void DrawString(SpriteFont spriteFont, string text, int start, int end, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, Vector2[] offsets)
static void ForceDrawScale(float scale, Vector2 origin, Vector2 position)
void DrawStringMultiLineCentre(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void DrawString(SpriteFont spriteFont, StringBuilder text, int start, int end, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void DrawString(SpriteFont spriteFont, string text, int start, int end, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void DrawStringMultiLineRight(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, [Optional] Vector2? position, [Optional] Rectangle? destinationRectangle, [Optional] Rectangle? sourceRectangle, [Optional] Vector2? origin, float rotation=0f, [Optional] Vector2? scale, [Optional] Color? color, SpriteEffects effects=SpriteEffects.None, float layerDepth=0f)
void Draw(Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRectangle, Color color)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, VertexColors color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color)
void Draw(Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRectangle, VertexColors color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Vector2 position, Color color)
void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color)
void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Vector2 position, Color color, float rotation, Vector2 origin, float scale)
void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color)
void CheckValid(SpriteFont spriteFont, StringBuilder text)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth=0f)
void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void Begin(SpriteSortMode sortMode=SpriteSortMode.Deferred, [Optional] BlendState blendState, [Optional] SamplerState samplerState, [Optional] DepthStencilState depthStencilState, [Optional] RasterizerState rasterizerState, [Optional] Effect effect, [Optional] Matrix? transformMatrix, bool defferedBatch=true)
SpriteBatch(GraphicsDevice graphicsDevice)
void DrawString(SpriteFont spriteFont, StringBuilder text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, VertexColors color, SpriteEffects effects)
void CheckValid(SpriteFont spriteFont, string text)
void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth=0f)
SpriteBatchItem InsertNewBatchItem(Texture2D texture)
void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, VertexColors color)
static List< SpriteBatchItem > rightLineElements
void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, VertexColors color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Vector2 position, Rectangle? sourceRectangle, VertexColors color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth=0f)
void DrawString(SpriteFont spriteFont, StringBuilder text, int start, int end, Vector2 position, Color color, float rotation, Vector2 origin, Vector2 scale, Vector2[] offsets)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, VertexColors color)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects=SpriteEffects.None)
void Draw(Texture2D texture, Rectangle destinationRectangle, Color color)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, float scale)
void Draw(Texture2D texture, Vector2? position, Rectangle? destinationRectangle, Rectangle? sourceRectangle, Vector2? origin, float rotation, Vector2? scale, VertexColors color, SpriteEffects effects=SpriteEffects.None, float layerDepth=0f)
void DrawString(SpriteFont spriteFont, string text, Vector2 position, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float layerDepth)
void Draw(Texture2D texture, Vector2 position, Rectangle srcRect, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects=SpriteEffects.None)
static void LogError(object message)
Definition Debug.cs:62