Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DrawNPCDirect_DeerclopsLeg()

static void Terraria.Main.DrawNPCDirect_DeerclopsLeg ( SpriteBatch mySpriteBatch,
NPC rCurrentNPC,
ref Vector2 screenPos,
int typeCache,
ref Microsoft::Xna::Framework::Color npcColor,
ref Vector2 halfSize,
SpriteEffects npcSpriteEffect )
inlinestaticprivate

Definition at line 24759 of file Main.cs.

24760 {
24762 int num = 0;
24763 int num2 = 0;
24764 mySpriteBatch.Draw(TextureAssets.Npc[typeCache].Value, new Vector2(rCurrentNPC.position.X - screenPos.X + (float)(rCurrentNPC.width / 2) - (float)TextureAssets.Npc[typeCache].Width() * rCurrentNPC.scale / 2f + halfSize.X * rCurrentNPC.scale, rCurrentNPC.position.Y - screenPos.Y + (float)rCurrentNPC.height - (float)TextureAssets.Npc[typeCache].Height() * rCurrentNPC.scale / (float)npcFrameCount[typeCache] + 4f + halfSize.Y * rCurrentNPC.scale + (float)num2 + (float)num + rCurrentNPC.gfxOffY), sourceRectangle, rCurrentNPC.GetAlpha(npcColor), rCurrentNPC.rotation, halfSize, rCurrentNPC.scale, npcSpriteEffect, 0f);
24765 }
static Asset< Texture2D >[] Npc
static int[] npcFrameCount
Definition Main.cs:2002

References Terraria.GameContent.TextureAssets.Npc, and Terraria.Main.npcFrameCount.