| 1234567891011121314151617181920212223242526272829303132 |
- using Content.Shared.Humanoid;
- using Content.Shared.Inventory;
- using Robust.Shared.GameStates;
- namespace Content.Shared.Clothing.Components;
- /// <summary>
- /// This is used for a clothing item that hides an appearance layer.
- /// The entity's HumanoidAppearance component must have the corresponding hideLayerOnEquip value.
- /// </summary>
- [RegisterComponent, NetworkedComponent]
- public sealed partial class HideLayerClothingComponent : Component
- {
- /// <summary>
- /// The appearance layer(s) to hide. Use <see cref='Layers'>Layers</see> instead.
- /// </summary>
- [DataField]
- [Obsolete("This attribute is deprecated, please use Layers instead.")]
- public HashSet<HumanoidVisualLayers>? Slots;
- /// <summary>
- /// A map of the appearance layer(s) to hide, and the equipment slot that should hide them.
- /// </summary>
- [DataField]
- public Dictionary<HumanoidVisualLayers, SlotFlags> Layers = new();
- /// <summary>
- /// If true, the layer will only hide when the item is in a toggled state (e.g. masks)
- /// </summary>
- [DataField]
- public bool HideOnToggle = false;
- }
|