tModLoader v2024.11
A mod to make and play Terraria mods
Profiles.VariantNPCProfile Class Reference

Inherits ITownNPCProfile.

Public Member Functions

 VariantNPCProfile (string npcFileTitleFilePath, string npcBaseName, int[] variantHeadIds, params string[] variantTextureNames)
 
int GetHeadTextureIndex (NPC npc)
 
string GetNameForVariant (NPC npc)
 
Asset< Texture2D > GetTextureNPCShouldUse (NPC npc)
 
int RollVariation ()
 
VariantNPCProfile SetPartyTextures (params string[] variantTextureNames)
 
int GetHeadTextureIndex (NPC npc)
 
string GetNameForVariant (NPC npc)
 
Asset< Texture2D > GetTextureNPCShouldUse (NPC npc)
 
int RollVariation ()
 

Member Function Documentation

◆ GetHeadTextureIndex()

int Profiles.VariantNPCProfile.GetHeadTextureIndex ( NPC  npc)

Implements ITownNPCProfile.

◆ GetNameForVariant()

string Profiles.VariantNPCProfile.GetNameForVariant ( NPC  npc)

Implements ITownNPCProfile.

◆ GetTextureNPCShouldUse()

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

Implements ITownNPCProfile.

◆ RollVariation()

int Profiles.VariantNPCProfile.RollVariation ( )

Implements ITownNPCProfile.