tModLoader v2024.09
A mod to make and play Terraria mods
|
Class that is some-what identical to
that allows for modded texture usage. Also allows for any potential children classes to mess with the fields. More...
Inherits ITownNPCProfile.
Public Member Functions | |
DefaultNPCProfile (string texturePath, int headSlot, string partyTexturePath=null) | |
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 () |
Protected Attributes | |
int | currentHeadSlot |
Asset< Texture2D > | defaultTexture |
Asset< Texture2D > | partyTexture |
Class that is some-what identical to
that allows for modded texture usage. Also allows for any potential children classes to mess with the fields.
int Profiles.DefaultNPCProfile.GetHeadTextureIndex | ( | NPC | npc | ) |
Implements ITownNPCProfile.
string Profiles.DefaultNPCProfile.GetNameForVariant | ( | NPC | npc | ) |
Implements ITownNPCProfile.
Asset< Texture2D > Profiles.DefaultNPCProfile.GetTextureNPCShouldUse | ( | NPC | npc | ) |
Implements ITownNPCProfile.
int Profiles.DefaultNPCProfile.RollVariation | ( | ) |
Implements ITownNPCProfile.