Files
tbd-station-14/Content.Shared/Inventory/SlotBlockComponent.cs
Winkarst 08d9d46b46 New Feature: Slot blockers (#35172)
* First commit

* More comments

* Update

* Update

* For Beloved Maintainers

* Beck T, my beloved

* Update

* Old stuff

* Update EquipAttemptEvents.cs

* Update UnequipAttemptEvent.cs

---------

Co-authored-by: beck-thompson <107373427+beck-thompson@users.noreply.github.com>
2025-05-12 10:35:42 -07:00

17 lines
554 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Inventory;
/// <summary>
/// Used to prevent items from being unequipped and equipped from slots that are listed in <see cref="Slots"/>.
/// </summary>
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(SlotBlockSystem))]
public sealed partial class SlotBlockComponent : Component
{
/// <summary>
/// Slots that this entity should block.
/// </summary>
[DataField(required: true), AutoNetworkedField]
public SlotFlags Slots = SlotFlags.NONE;
}