* 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>
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;
|
|
}
|