本文整理匯總了C#中Terraria.Player.GetImmuneAlphaPure方法的典型用法代碼示例。如果您正苦於以下問題:C# Player.GetImmuneAlphaPure方法的具體用法?C# Player.GetImmuneAlphaPure怎麽用?C# Player.GetImmuneAlphaPure使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Terraria.Player
的用法示例。
在下文中一共展示了Player.GetImmuneAlphaPure方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: DrawPlayer
//.........這裏部分代碼省略.........
if (num13 == 65)
{
num13 = num20;
}
if (num14 == 65)
{
num14 = num20;
}
if (num15 == 65)
{
num15 = num20;
}
if (num16 == 65)
{
num16 = num20;
}
if (num17 == 65)
{
num17 = num20;
}
if (num18 == 65)
{
num18 = num20;
}
drawPlayer.itemLocation.Y = drawPlayer.itemLocation.Y + drawPlayer.gfxOffY;
SpriteEffects spriteEffects = SpriteEffects.None;
SpriteEffects effect = SpriteEffects.FlipHorizontally;
Color color = drawPlayer.GetImmuneAlpha(drawPlayer.GetHairColor(true), shadow);
Color color2 = drawPlayer.GetImmuneAlpha(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)Position.Y + (double)drawPlayer.height * 0.25) / 16.0), Color.White), shadow);
Color color3 = drawPlayer.GetImmuneAlpha(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)Position.Y + (double)drawPlayer.height * 0.25) / 16.0), drawPlayer.eyeColor), shadow);
Color color4 = drawPlayer.GetImmuneAlpha(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)Position.Y + (double)drawPlayer.height * 0.25) / 16.0), drawPlayer.skinColor), shadow);
Color color5 = drawPlayer.GetImmuneAlpha(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)Position.Y + (double)drawPlayer.height * 0.5) / 16.0), drawPlayer.skinColor), shadow);
Color color6 = drawPlayer.GetImmuneAlpha(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)Position.Y + (double)drawPlayer.height * 0.75) / 16.0), drawPlayer.skinColor), shadow);
Color color7 = drawPlayer.GetImmuneAlphaPure(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)Position.Y + (double)drawPlayer.height * 0.5) / 16.0), drawPlayer.shirtColor), shadow);
Color color8 = drawPlayer.GetImmuneAlphaPure(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)Position.Y + (double)drawPlayer.height * 0.5) / 16.0), drawPlayer.underShirtColor), shadow);
Color color9 = drawPlayer.GetImmuneAlphaPure(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)Position.Y + (double)drawPlayer.height * 0.75) / 16.0), drawPlayer.pantsColor), shadow);
Color color10 = drawPlayer.GetImmuneAlphaPure(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)(((double)Position.Y + (double)drawPlayer.height * 0.75) / 16.0), drawPlayer.shoeColor), shadow);
Color color11 = drawPlayer.GetImmuneAlphaPure(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)((double)Position.Y + (double)drawPlayer.height * 0.25) / 16, Color.White), shadow);
Color color12 = drawPlayer.GetImmuneAlphaPure(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)((double)Position.Y + (double)drawPlayer.height * 0.5) / 16, Color.White), shadow);
Color color13 = drawPlayer.GetImmuneAlphaPure(Lighting.GetColor((int)((double)Position.X + (double)drawPlayer.width * 0.5) / 16, (int)((double)Position.Y + (double)drawPlayer.height * 0.75) / 16, Color.White), shadow);
if (drawPlayer.head > 0 && drawPlayer.head < 169)
{
this.LoadArmorHead(drawPlayer.head);
}
if (drawPlayer.body > 0 && drawPlayer.body < 175)
{
this.LoadArmorBody(drawPlayer.body);
}
if (drawPlayer.legs > 0 && drawPlayer.legs < 110)
{
this.LoadArmorLegs(drawPlayer.legs);
}
if (drawPlayer.handon > 0 && drawPlayer.handon < 18)
{
this.LoadAccHandsOn((int)drawPlayer.handon);
}
if (drawPlayer.handoff > 0 && drawPlayer.handoff < 11)
{
this.LoadAccHandsOff((int)drawPlayer.handoff);
}
if (drawPlayer.back > 0 && drawPlayer.back < 8)
{
this.LoadAccBack((int)drawPlayer.back);
}
if (drawPlayer.front > 0 && drawPlayer.front < 5)
{
示例2: DrawArmorColor
public override void DrawArmorColor(Player drawPlayer, float shadow, ref Color color, ref int glowMask, ref Color glowMaskColor)
{
color = drawPlayer.GetImmuneAlphaPure(Color.White, shadow);
}