tModLoader v2024.09
A mod to make and play Terraria mods
Profiles.TransformableNPCProfile Class Reference

Inherits ITownNPCProfile.

Public Member Functions

 TransformableNPCProfile (string npcFileTitleFilePath, int defaultHeadIndex, bool includeCredits=true)
 
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.TransformableNPCProfile.GetHeadTextureIndex ( NPC  npc)

Implements ITownNPCProfile.

◆ GetNameForVariant()

string Profiles.TransformableNPCProfile.GetNameForVariant ( NPC  npc)

Implements ITownNPCProfile.

◆ GetTextureNPCShouldUse()

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

Implements ITownNPCProfile.

◆ RollVariation()

int Profiles.TransformableNPCProfile.RollVariation ( )

Implements ITownNPCProfile.