1
0

ToggleActionEvent.cs 580 B

12345678910111213141516171819202122
  1. using Content.Shared.Actions;
  2. using Robust.Shared.Serialization;
  3. namespace Content.Shared.Toggleable;
  4. /// <summary>
  5. /// Generic action-event for toggle-able components.
  6. /// </summary>
  7. /// <remarks>
  8. /// If you are using <c>ItemToggleComponent</c> subscribe to <c>ItemToggledEvent</c> instead.
  9. /// </remarks>
  10. public sealed partial class ToggleActionEvent : InstantActionEvent;
  11. /// <summary>
  12. /// Generic enum keys for toggle-visualizer appearance data & sprite layers.
  13. /// </summary>
  14. [Serializable, NetSerializable]
  15. public enum ToggleVisuals : byte
  16. {
  17. Toggled,
  18. Layer
  19. }