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

◆ FindFrame_FromSequence()

static int Terraria.NPC.FindFrame_FromSequence ( int sequenceFrame,
int[] frames )
inlinestaticprivate

Definition at line 82799 of file NPC.cs.

82800 {
82801 int num = sequenceFrame;
82802 if (num >= frames.Length)
82803 {
82804 num = frames.Length - 1;
82805 }
82806 return frames[num];
82807 }

Referenced by Terraria.NPC.FindFrame_Deerclops_GetAttack1Frame(), Terraria.NPC.FindFrame_Deerclops_GetAttack2Frame(), and Terraria.NPC.FindFrame_Deerclops_GetAttack3Frame().

+ Here is the caller graph for this function: