using Microsoft.Xna.Framework.Graphics; namespace CalamityMod.DataStructures { /// /// Allows for custom shader drawing used by accessories or armor set bonuses to have dyes applied to them. /// public interface IDyeableShaderRenderer { #region Layer Constants public const float RoverDriveDepth = 1f; public const float HaloShieldDepth = 2f; public const float ProfanedSoulShieldDepth = 3f; public const float SpongeShieldDepth = 4f; #endregion /// /// Owner of this Renderer Item /// public int OwnerPlayer { get; set; } /// /// The draw depth of the renderer. This is used to draw them in descending order; higher values are drawn first. /// public float RenderDepth { get; } /// /// Whether this should draw this frame. /// public bool ShouldDrawDyeableShader { get; } // This exists for things such as the halo shield, where it uses this interface for layering, but shouldn't actually be dyed as its color is a reference. /// /// Whether the shader should have dyes applied. /// public bool ShaderIsDyeable => true; /// /// Draw the visuals in here. /// /// public void DrawDyeableShader(SpriteBatch spriteBatch); } }