TModLoader v1.4.4.9
TModLoader 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 Color npcColor,
ref Vector2 halfSize,
SpriteEffects npcSpriteEffect )
inlinestaticprivate

Definition at line 30537 of file Main.cs.

30538 {
30539 //IL_00b9: Unknown result type (might be due to invalid IL or missing references)
30540 //IL_00c2: Unknown result type (might be due to invalid IL or missing references)
30541 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)
30542 //IL_00d4: Unknown result type (might be due to invalid IL or missing references)
30543 //IL_00df: Unknown result type (might be due to invalid IL or missing references)
30544 Rectangle? sourceRectangle = null;
30545 int num = 0;
30546 int num2 = 0;
30547 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);
30548 }
static Asset< Texture2D >[] Npc
static int[] npcFrameCount
Definition Main.cs:2152

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