tModLoader v2024.03
A mod to make and play Terraria mods
Profiles.StackedNPCProfile Class Reference

Inherits ITownNPCProfile.

Public Member Functions

 StackedNPCProfile (params ITownNPCProfile[] profilesInOrderOfVariants)
 
int GetHeadTextureIndex (NPC npc)
 
string GetNameForVariant (NPC npc)
 
Asset< Texture2D > GetTextureNPCShouldUse (NPC npc)
 
int RollVariation ()
 
int GetHeadTextureIndex (NPC npc)
 
string GetNameForVariant (NPC npc)
 
Asset< Texture2D > GetTextureNPCShouldUse (NPC npc)
 
int RollVariation ()
 

Member Function Documentation

◆ GetHeadTextureIndex()

int Profiles.StackedNPCProfile.GetHeadTextureIndex ( NPC  npc)

Implements ITownNPCProfile.

◆ GetNameForVariant()

string Profiles.StackedNPCProfile.GetNameForVariant ( NPC  npc)

Implements ITownNPCProfile.

◆ GetTextureNPCShouldUse()

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

Implements ITownNPCProfile.

◆ RollVariation()

int Profiles.StackedNPCProfile.RollVariation ( )

Implements ITownNPCProfile.