TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AutoStaticDefaults()

virtual void Terraria.ModLoader.ModHair.AutoStaticDefaults ( )
inlinevirtual

Automatically sets certain static defaults. Override this if you do not want the properties to be set for you.

Definition at line 49 of file ModHair.cs.

50 {
51 TextureAssets.PlayerHair[Type] = ModContent.Request<Texture2D>(Texture);
52 TextureAssets.PlayerHairAlt[Type] = ModContent.Request<Texture2D>(AltTexture);
53 }
static Asset< Texture2D >[] PlayerHair
static Asset< Texture2D >[] PlayerHairAlt
virtual string AltTexture
The path to the alternative texture used for when the hair is covered by a hat.
Definition ModHair.cs:18
virtual string Texture
The file name of this type's texture file in the mod loader's file space.

References Terraria.ModLoader.ModHair.AltTexture, Terraria.GameContent.TextureAssets.PlayerHair, Terraria.GameContent.TextureAssets.PlayerHairAlt, Terraria.ModLoader.ModTexturedType.Texture, and Terraria.ModLoader.ModHair.Type.

Referenced by Terraria.ModLoader.ModHair.SetupContent().

+ Here is the caller graph for this function: