* 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>
23 lines
551 B
C#
23 lines
551 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Item.ItemToggle.Components;
|
|
|
|
/// <summary>
|
|
/// Handles the changes to ItemComponent.HeldPrefix when toggled.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class ItemTogglePrefixComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Item's HeldPrefix when activated.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? PrefixOn = "on";
|
|
|
|
/// <summary>
|
|
/// Item's HeldPrefix when deactivated.
|
|
/// </summary>
|
|
[DataField]
|
|
public string? PrefixOff;
|
|
}
|