mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* Make borgs magnetize ore * nullable SlotFlags * add hand check * fix and cleanup * description edit
30 lines
759 B
C#
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;
|
|
}
|