6
StarHorizon_Public/Content.Shared/Sticky/Components/StickyVisualizerComponent.cs
2026-01-13 18:31:02 +02:00

31 lines
698 B
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Robust.Shared.Serialization;
namespace Content.Shared.Sticky.Components;
using DrawDepth;
/// <summary>
/// Sets the sprite's draw depth depending on whether it's stuck.
/// </summary>
[RegisterComponent]
public sealed partial class StickyVisualizerComponent : Component
{
/// <summary>
/// What sprite draw depth gets set to when stuck to something.
/// </summary>
[DataField]
public int StuckDrawDepth = (int) DrawDepth.Overdoors;
/// <summary>
/// The sprite's original draw depth before being stuck.
/// </summary>
[DataField]
public int OriginalDrawDepth;
}
[Serializable, NetSerializable]
public enum StickyVisuals : byte
{
IsStuck
}