using Content.Shared.Hands.Components; namespace Content.Client.Toggleable; /// /// Component that handles toggling the visuals of an entity, including layers on an entity's sprite, /// the in-hand visuals, and the clothing/equipment visuals. /// /// [RegisterComponent] public sealed partial class ToggleableVisualsComponent : Component { /// /// Sprite layer that will have its visibility toggled when this item is toggled. /// [DataField(required: true)] public string? SpriteLayer; /// /// Layers to add to the sprite of the player that is holding this entity (while the component is toggled on). /// [DataField] 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] public Dictionary> ClothingVisuals = new(); }