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

Inherits ITownNPCProfile.

Public Member Functions

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

Implements ITownNPCProfile.

◆ GetNameForVariant()

string Profiles.LegacyNPCProfile.GetNameForVariant ( NPC  npc)

Implements ITownNPCProfile.

◆ GetTextureNPCShouldUse()

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

Implements ITownNPCProfile.

◆ RollVariation()

int Profiles.LegacyNPCProfile.RollVariation ( )

Implements ITownNPCProfile.