Files
CalamityModPublic/CalPlayer/DrawLayers/IBulkyArmor.cs
T

23 lines
832 B
C#

using Microsoft.Xna.Framework;
using Terraria.DataStructures;
using Terraria;
/// <summary>
/// Interface that can be used by chestplates to appear extra bulky, by drawing partly over the players helmet with an extra layer
/// </summary>
public interface IBulkyArmor
{
/// <summary>
/// The texture of the part that goes above the helmet
/// This should be the same size as a regular equipped sprite (20 x 560 in 1x1)
/// </summary>
string BulkTexture { get; }
/// <summary>
/// The slot for the body equip texture.
/// Defaults to -1, which will have it search itself for the appropriate body slot using the name of the item.
/// If your item has different body slot types depending on other factors, you can specify it here.
/// </summary>
int BodySlot(Player drawPlayer) => -1;
}