2024-08-08 23:36:15 +00:00
|
|
|
|
using Robust.Shared.Serialization;
|
2022-04-15 01:00:50 +03:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.Sticky.Components;
|
|
|
|
|
|
|
2024-08-08 23:36:15 +00:00
|
|
|
|
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]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class StickyVisualizerComponent : Component
|
2022-04-15 01:00:50 +03:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2024-08-08 23:36:15 +00:00
|
|
|
|
/// What sprite draw depth gets set to when stuck to something.
|
2022-04-15 01:00:50 +03:00
|
|
|
|
/// </summary>
|
2024-08-08 23:36:15 +00:00
|
|
|
|
[DataField]
|
2022-04-15 01:00:50 +03:00
|
|
|
|
public int StuckDrawDepth = (int) DrawDepth.Overdoors;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-08-08 23:36:15 +00:00
|
|
|
|
/// The sprite's original draw depth before being stuck.
|
2022-04-15 01:00:50 +03:00
|
|
|
|
/// </summary>
|
2024-08-08 23:36:15 +00:00
|
|
|
|
[DataField]
|
|
|
|
|
|
public int OriginalDrawDepth;
|
2022-04-15 01:00:50 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
|
public enum StickyVisuals : byte
|
|
|
|
|
|
{
|
|
|
|
|
|
IsStuck
|
|
|
|
|
|
}
|