Files
tbd-station-14/Content.Shared/Clothing/Components/ToggleClothingPrefixComponent.cs
Token ace3682de3 Item HeldPrefix and Clothing EquippedPrefix toggler (#33054)
* Item and clothes prefix toggler
Handles Item.HeldPrefix and ClothingComponent.EquippedPrefix respectively

* stunbaton and magboots sprites activations to Toggler yml

* review

---------

Co-authored-by: Milon <milonpl.git@proton.me>
2025-04-14 15:50:21 -07:00

23 lines
572 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Clothing.Components;
/// <summary>
/// Handles the changes to ClothingComponent.EquippedPrefix when toggled.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class ToggleClothingPrefixComponent : Component
{
/// <summary>
/// Clothing's EquippedPrefix when activated.
/// </summary>
[DataField]
public string? PrefixOn = "on";
/// <summary>
/// Clothing's EquippedPrefix when deactivated.
/// </summary>
[DataField]
public string? PrefixOff;
}