Files
Delta-v/Content.Client/_DV/Abilities/DrawDepthVisualizerComponent.cs
T
deltanedasanddeltanedas 92a1e0dfc6 rodentia crawling refactor (#2754)
* make draw depth stuff reusable and good

* rodentia crawling refactor

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-01-16 15:28:03 +00:00

26 lines
670 B
C#

using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
namespace Content.Client._DV.Abilities;
/// <summary>
/// Changes the sprite's draw depth when some appearance data becomes true, reverting it when false.
/// </summary>
[RegisterComponent]
public sealed partial class DrawDepthVisualizerComponent : Component
{
/// <summary>
/// Appearance key to check.
/// </summary>
[DataField(required: true)]
public Enum Key;
/// <summary>
/// The draw depth to set the sprite to when the appearance data is true.
/// </summary>
[DataField(required: true)]
public DrawDepth Depth;
[DataField]
public int? OriginalDrawDepth;
}