CatStation/Content.Shared/Storage/Components/MagnetPickupComponent.cs
GR1231 93de34cc53
Make cyborgs magnetize items (#39970)
* Make borgs magnetize ore

* nullable SlotFlags

* add hand check

* fix and cleanup

* description edit
2026-04-28 14:52:19 +00:00

30 lines
759 B
C#

using Content.Shared.Inventory;
using Robust.Shared.GameStates;
namespace Content.Shared.Storage.Components;
/// <summary>
/// Applies an ongoing pickup area around the attached entity.
/// </summary>
[RegisterComponent, NetworkedComponent]
[AutoGenerateComponentState]
[AutoGenerateComponentPause]
public sealed partial class MagnetPickupComponent : Component
{
[DataField]
[AutoPausedField]
[AutoNetworkedField]
public TimeSpan NextScan = TimeSpan.Zero;
/// <summary>
/// What container slot the magnet needs to be in to work.
/// </summary>
[DataField]
public SlotFlags? SlotFlags = Inventory.SlotFlags.BELT;
[DataField]
public bool RequireActiveHand = false;
[DataField]
public float Range = 1f;
}