This commit is contained in:
Alex Evgrashin
2022-04-15 01:00:50 +03:00
committed by GitHub
parent e769ad2725
commit fe4dbfd2f6
18 changed files with 556 additions and 10 deletions

View File

@@ -0,0 +1,27 @@
using Robust.Shared.Serialization;
namespace Content.Shared.Sticky.Components;
using DrawDepth;
[RegisterComponent]
public sealed class StickyVisualizerComponent : Component
{
/// <summary>
/// What sprite draw depth set when entity stuck.
/// </summary>
[DataField("stuckDrawDepth")]
[ViewVariables(VVAccess.ReadWrite)]
public int StuckDrawDepth = (int) DrawDepth.Overdoors;
/// <summary>
/// What sprite draw depth set when entity unstuck.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public int DefaultDrawDepth;
}
[Serializable, NetSerializable]
public enum StickyVisuals : byte
{
IsStuck
}