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

◆ GetTextureNPCShouldUse()

Asset< Texture2D > Terraria.GameContent.Profiles.StackedNPCProfile.GetTextureNPCShouldUse ( NPC npc)
inline

Implements Terraria.GameContent.ITownNPCProfile.

Definition at line 34 of file Profiles.cs.

35 {
36 int num = 0;
37 if (_profiles.IndexInRange(npc.townNpcVariationIndex))
38 {
39 num = npc.townNpcVariationIndex;
40 }
41 return _profiles[num].GetTextureNPCShouldUse(npc);
42 }
Asset< Texture2D > GetTextureNPCShouldUse(NPC npc)

References Terraria.GameContent.Profiles.StackedNPCProfile._profiles, Terraria.GameContent.ITownNPCProfile.GetTextureNPCShouldUse(), and Terraria.NPC.townNpcVariationIndex.