Files
crystall-punk-14/Content.Shared/Sticky/Components/StickyVisualizerComponent.cs

31 lines
698 B
C#
Raw Permalink Normal View History

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