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

◆ DrawBatch()

void Microsoft.Xna.Framework.Graphics.SpriteBatcher.DrawBatch ( SpriteSortMode sortMode,
Effect effect,
bool overloadTranform,
bool deffered,
[Optional] SpriteBatchItem overrideFirstItem )
inline

Definition at line 207 of file SpriteBatcher.cs.

208 {
209 string name;
210 for (;;)
211 {
213 if (batchItemCount == 0)
214 {
215 return;
216 }
217 if (batchItemCount == 0)
218 {
219 }
220 int num = 1;
221 if (num == 0)
222 {
223 }
224 int value = num.m_value;
225 if (!true)
226 {
227 }
228 int num2 = 1;
229 if (num2 == 0)
230 {
231 }
232 if (num2 == 0)
233 {
234 if ("Only TraceListeners can be added to a TraceListenerCollection." == null)
235 {
236 }
237 bool gameMenu = Main.gameMenu;
238 if ("Only TraceListeners can be added to a TraceListenerCollection." == null)
239 {
240 }
241 int myPlayer = Main.myPlayer;
242 if ("Only TraceListeners can be added to a TraceListenerCollection." == null)
243 {
244 }
245 int screenHeight = Main.screenHeight;
246 }
248 SpriteBatchItem[] batchItemList = this._batchItemList;
249 EffectPass overloadedEffectPass;
250 if (overrideFirstItem == null)
251 {
253 }
254 SpriteBatcher.VertexData[] array = this.vertexData;
255 int indexOffset = this._indexOffset;
256 if (array != null)
257 {
258 if (overloadedEffectPass == null)
259 {
260 break;
261 }
262 }
263 else if (overloadedEffectPass == null)
264 {
265 goto IL_018A;
266 }
267 int vertexOffset = this._vertexOffset;
268 int vertexOffset2 = this._vertexOffset;
270 int passIndex = overloadedEffectPass.PassIndex;
271 int indexOffset2 = this._indexOffset;
272 int passIndex2 = overloadedEffectPass.PassIndex;
273 GraphicsDevice device = this._device;
274 name = overloadedEffectPass.Name;
275 Effect effect2 = overloadedEffectPass._effect;
276 Texture2D[] textures = device.Textures;
277 if (name != null && name == null)
278 {
279 goto IL_017B;
280 }
281 textures.<Name>k__BackingField = name;
282 int batchIndex = overloadedEffectPass.BatchIndex;
286 int vertexOffset3 = this._vertexOffset;
290 if (overloadedEffectPass._material == null)
291 {
292 goto Block_6;
293 }
294 }
295 return;
296 Block_6:
298 if (name == null || name != null)
299 {
300 textures2.<Name>k__BackingField = name;
301 goto IL_018A;
302 }
303 IL_017B:
304 throw new ArrayTypeMismatchException();
305 IL_018A:
307 }
class f__AnonymousType0<< Count > j__TPar
Dictionary< int, SpriteBatchItemList > _activeBatchLists
static int myPlayer
Definition Main.cs:2337
static int screenHeight
Definition Main.cs:2015
static bool gameMenu
Definition Main.cs:2673

References Microsoft.Xna.Framework.Graphics.SpriteBatcher._activeBatchLists, Microsoft.Xna.Framework.Graphics.SpriteBatcher._batchItemCount, Microsoft.Xna.Framework.Graphics.SpriteBatcher._batchItemList, Microsoft.Xna.Framework.Graphics.SpriteBatcher._device, Microsoft.Xna.Framework.Graphics.SpriteBatcher._indexOffset, Microsoft.Xna.Framework.Graphics.EffectPass._material, Microsoft.Xna.Framework.Graphics.SpriteBatcher._materialOffset, Microsoft.Xna.Framework.Graphics.SpriteBatcher._vertexOffset, System.array, Terraria.Main.gameMenu, j__TPar, Terraria.Main.myPlayer, System.name, System.Name, Microsoft.Xna.Framework.Graphics.SpriteBatchItem.OverloadedEffectPass, Microsoft.Xna.Framework.Graphics.EffectPass.PassIndex, Terraria.Main.screenHeight, Microsoft.Xna.Framework.Graphics.GraphicsDevice.Textures, System.value, and Microsoft.Xna.Framework.Graphics.SpriteBatcher.vertexData.