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() [1/4]

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

Definition at line 91 of file SpriteBatchItem.cs.

92 {
93 int num = 1;
94 byte r = color.R;
95 if (num == 0)
96 {
97 }
98 byte g = color.G;
99 byte b = color.B;
100 Texture2D texture = this.Texture;
101 if (texture == null)
102 {
103 bool flag;
104 this.vertexTL.Color.a = (flag ? 1 : 0);
105 float y2 = texCoordTL.Y;
106 this.vertexTR.Color.a = (flag ? 1 : 0);
107 float num2;
109 float y3 = texCoordTL.Y;
110 this.vertexBL.Color.a = (flag ? 1 : 0);
111 float num3;
113 float y4 = texCoordBR.Y;
114 this.vertexBR.Color.a = (flag ? 1 : 0);
115 float y5 = texCoordBR.Y;
117 return;
118 }
119 TextureAtlasEntry packedEntry = texture.PackedEntry;
120 if (packedEntry != null)
121 {
122 int unityWidth = texture.UnityWidth;
123 int unityHeight = texture.UnityHeight;
124 short textureHeight = packedEntry.TextureHeight;
125 short textureOffsetX = packedEntry.TextureOffsetX;
126 short textureOffsetY = packedEntry.TextureOffsetY;
127 int tileDataOffset = packedEntry.TileDataOffset;
128 short textureScale = packedEntry.TextureScale;
129 float x2 = texCoordBR.X;
130 float y6 = texCoordBR.Y;
131 bool tileTrimming = packedEntry.TileTrimming;
132 float x3 = texCoordTL.X;
133 float y7 = texCoordTL.Y;
134 float x4 = texCoordBR.X;
135 float y8 = texCoordBR.Y;
136 if (textureOffsetX == 0)
137 {
138 }
139 return;
140 }
141 }
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.