Files
Delta-v/Content.Shared/Sticky/Components/StickyVisualizerComponent.cs
T
deltanedasanddeltanedas 3613134d2e full sticky prediction (#30230)
* move all sticky stuff to shared and cleanup/grammar fix

* update imports and ref

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2024-08-09 19:04:17 +01:00

31 lines
698 B
C#

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
}