17 lines
554 B
C#
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;
|
|
}
|