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

◆ GetAlpha() [2/2]

Color Terraria.Dust.GetAlpha ( Color newColor)
inline

Definition at line 329 of file Dust.cs.

330 {
331 int num = this.alpha;
332 int num2 = this.type;
333 byte r = this.color.R;
334 int num3 = 255;
335 int num4 = Math.Min(0, num3);
336 byte g = this.color.G;
337 int num5 = 255;
338 int num6 = Math.Min(num4, num5);
339 byte b = this.color.B;
340 int num7 = 255;
341 int num8 = Math.Min(num6, num7);
342 Color color = this.color;
343 if (color == null)
344 {
345 }
346 return color;
347 }
class f__AnonymousType0<< Count > j__TPar
static byte Min(byte val1, byte val2)
Definition Math.cs:152
int alpha
Definition Dust.cs:471
Color color
Definition Dust.cs:468

References Terraria.Dust.alpha, Microsoft.Xna.Framework.Graphics.Color.B, Terraria.Dust.color, Microsoft.Xna.Framework.Graphics.Color.G, j__TPar, System.Math.Min(), Microsoft.Xna.Framework.Graphics.Color.R, and Terraria.Dust.type.