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

◆ Set() [3/4]

void Microsoft.Xna.Framework.Graphics.SpriteBatchItem.Set ( float x,
float y,
float w,
float h,
Color color,
Vector2 texCoordTL,
Vector2 texCoordBR )
inline

Definition at line 218 of file SpriteBatchItem.cs.

219 {
220 int num = 1;
221 byte r = color.R;
222 if (num == 0)
223 {
224 }
225 byte g = color.G;
226 byte b = color.B;
227 Texture2D texture = this.Texture;
228 if (texture == null)
229 {
230 bool flag;
231 this.vertexTL.Color.a = (flag ? 1 : 0);
232 float y2 = texCoordTL.Y;
233 this.vertexTR.Color.a = (flag ? 1 : 0);
235 float y3 = texCoordTL.Y;
236 this.vertexBL.Color.a = (flag ? 1 : 0);
238 float y4 = texCoordBR.Y;
240 this.vertexBR.Color.a = (flag ? 1 : 0);
241 float y5 = texCoordBR.Y;
243 return;
244 }
245 TextureAtlasEntry packedEntry = texture.PackedEntry;
246 if (packedEntry != null)
247 {
248 int unityWidth = texture.UnityWidth;
249 int unityHeight = texture.UnityHeight;
250 int tileDataOffset = packedEntry.TileDataOffset;
251 short textureHeight = packedEntry.TextureHeight;
252 short textureOffsetX = packedEntry.TextureOffsetX;
253 short textureOffsetY = packedEntry.TextureOffsetY;
254 short textureScale = packedEntry.TextureScale;
255 float x2 = texCoordTL.X;
256 float y6 = texCoordTL.Y;
257 float x3 = texCoordBR.X;
258 float y7 = texCoordBR.Y;
259 bool tileTrimming = packedEntry.TileTrimming;
260 float x4 = texCoordTL.X;
261 float y8 = texCoordTL.Y;
262 float x5 = texCoordBR.X;
263 float y9 = texCoordBR.Y;
264 if (textureOffsetX == 0)
265 {
266 }
267 return;
268 }
269 }
class f__AnonymousType0<< Count > j__TPar

References Microsoft.Xna.Framework.Graphics.Color.B, Microsoft.Xna.Framework.Graphics.Color.G, j__TPar, Microsoft.Xna.Framework.Graphics.Texture2D.PackedEntry, Microsoft.Xna.Framework.Graphics.Color.R, Microsoft.Xna.Framework.Graphics.SpriteBatchItem.Texture, Microsoft.Xna.Framework.Graphics.Texture2D.UnityHeight, and Microsoft.Xna.Framework.Graphics.Texture2D.UnityWidth.