using Content.Shared.Actions; using Robust.Shared.Serialization; namespace Content.Shared.Toggleable; /// /// Generic action-event for toggle-able components. /// /// /// If you are using ItemToggleComponent subscribe to ItemToggledEvent instead. /// public sealed partial class ToggleActionEvent : InstantActionEvent; /// /// Generic enum keys for toggle-visualizer appearance data & sprite layers. /// [Serializable, NetSerializable] public enum ToggleableVisuals : byte { Enabled, Layer, Color, } /// /// Generic sprite layer keys. /// [Serializable, NetSerializable] public enum LightLayers : byte { Light, /// /// Used as a key for generic unshaded layers. Not necessarily related to an entity with an actual light source. /// Use this instead of creating a unique single-purpose "unshaded" enum for every visualizer. /// Unshaded, }