Files
tbd-station-14/Content.Shared/Clothing/Components/HideLayerClothingComponent.cs
SlamBamActionman 7aa4beede6 Fix lizard snouts disappearing when wearing masks (#25716)
* fixes it

* Snout fix

* Partway commit

* Partway commit

* Update masks and helmets to use the new system
2024-04-19 15:39:47 +10:00

25 lines
748 B
C#

using Content.Shared.Humanoid;
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 to hide.
/// </summary>
[DataField]
public HashSet<HumanoidVisualLayers> Slots = 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;
}