StickyVisualizerComponent.cs 698 B

123456789101112131415161718192021222324252627282930
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.Sticky.Components;
  3. using DrawDepth;
  4. /// <summary>
  5. /// Sets the sprite's draw depth depending on whether it's stuck.
  6. /// </summary>
  7. [RegisterComponent]
  8. public sealed partial class StickyVisualizerComponent : Component
  9. {
  10. /// <summary>
  11. /// What sprite draw depth gets set to when stuck to something.
  12. /// </summary>
  13. [DataField]
  14. public int StuckDrawDepth = (int) DrawDepth.Overdoors;
  15. /// <summary>
  16. /// The sprite's original draw depth before being stuck.
  17. /// </summary>
  18. [DataField]
  19. public int OriginalDrawDepth;
  20. }
  21. [Serializable, NetSerializable]
  22. public enum StickyVisuals : byte
  23. {
  24. IsStuck
  25. }