Files
CalamityModPublic/CalPlayer/DrawLayers/IExtendedHat.cs
T
tomat 67bceff6e7 Initial dotnet format pass.
This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
2024-02-28 21:49:50 -08:00

26 lines
953 B
C#

using Microsoft.Xna.Framework;
using Terraria;
using Terraria.DataStructures;
public interface IExtendedHat
{
/// <summary>
/// The texture of the extension
/// </summary>
string ExtensionTexture { get; }
/// <summary>
/// Unless you are using custom drawing, mount offsets are taken into account automatically.
/// </summary>
Vector2 ExtensionSpriteOffset(PlayerDrawSet drawInfo);
/// <summary>
///Return true to make the extension get drawn automatically from the texture and offsets provided. Return false if you want to draw it yourself
/// </summary>
bool PreDrawExtension(PlayerDrawSet drawInfo) => true;
/// <summary>
/// The name of the equip slot for the item. If left empty, the equip slot that is looked for will use the name of the item.
/// Useful if you have multiple head textures you need to extend.
/// </summary>
string EquipSlotName(Player drawPlayer) => "";
}