tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
This class serves as a central place from which NPC head slots are stored and NPC head textures are assigned. This can be used to obtain the corresponding slots to head textures. More...
Static Public Member Functions | |
static int | GetBossHeadSlot (string texture) |
Gets the index of the boss head texture corresponding to the given texture path. More... | |
static int | GetHeadSlot (string texture) |
Gets the index of the head texture corresponding to the given texture path. More... | |
Static Public Attributes | |
static readonly int | vanillaBossHeadCount = Main.npcHeadBossTexture.Length |
The number of vanilla boss head textures that exist. More... | |
static readonly int | vanillaHeadCount = Main.npcHeadTexture.Length |
The number of vanilla town NPC head textures that exist. More... | |
Static Private Attributes | |
static int | nextBossHead = vanillaBossHeadCount |
static int | nextHead = vanillaHeadCount |
This class serves as a central place from which NPC head slots are stored and NPC head textures are assigned. This can be used to obtain the corresponding slots to head textures.
Definition at line 10 of file NPCHeadLoader.cs.
|
static |
Gets the index of the boss head texture corresponding to the given texture path.
texture |
References Terraria.ModLoader.ModContent.GetTexture(), Terraria.ModLoader.NPCHeadLoader.nextBossHead, and Terraria.ModLoader.NPCHeadLoader.nextHead.
|
static |
Gets the index of the head texture corresponding to the given texture path.
texture | Relative texture path |
|
staticprivate |
Definition at line 21 of file NPCHeadLoader.cs.
Referenced by Terraria.ModLoader.NPCHeadLoader.GetBossHeadSlot().
|
staticprivate |
Definition at line 20 of file NPCHeadLoader.cs.
Referenced by Terraria.ModLoader.NPCHeadLoader.GetBossHeadSlot().
|
static |
The number of vanilla boss head textures that exist.
Definition at line 19 of file NPCHeadLoader.cs.
|
static |
The number of vanilla town NPC head textures that exist.
Definition at line 15 of file NPCHeadLoader.cs.