using Content.Shared.Hands.Components; namespace Content.Client.Toggleable; /// /// Component that handles the toggling the visuals of some light emitting entity. /// /// /// This will toggle the visibility of layers on an entity's sprite, the in-hand visuals, and the clothing/equipment /// visuals. This will modify the color of any attached point lights. /// [RegisterComponent] public sealed partial class ToggleableLightVisualsComponent : Component { /// /// Sprite layer that will have its visibility toggled when this item is toggled. /// [DataField("spriteLayer")] public string? SpriteLayer = "light"; /// /// Layers to add to the sprite of the player that is holding this entity (while the component is toggled on). /// [DataField("inhandVisuals")] public Dictionary> InhandVisuals = new(); /// /// Layers to add to the sprite of the player that is wearing this entity (while the component is toggled on). /// [DataField("clothingVisuals")] public Dictionary> ClothingVisuals = new(); }