mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
* [NEW] Added toggle to magnetPickupSystem / [FIX] ore processor fix * Ru locale / En localisation fix * code change after review * WHITE comments added * ON sprites added by @kilath * update test. * fix * update tests * Changed ContainingSlot/SlotDef checks. Added ForcePickup. * Component fixed * microfix * style: a bit of styling --------- Co-authored-by: Remuchi <RemuchiOfficial@gmail.com>
27 lines
811 B
C#
27 lines
811 B
C#
using Content.Shared.Inventory;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Server.Storage.Components;
|
|
|
|
/// <summary>
|
|
/// Applies an ongoing pickup area around the attached entity.
|
|
/// </summary>
|
|
[NetworkedComponent]
|
|
[RegisterComponent, AutoGenerateComponentPause, AutoGenerateComponentState]
|
|
public sealed partial class MagnetPickupComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("nextScan")]
|
|
[AutoPausedField]
|
|
public TimeSpan NextScan = TimeSpan.Zero;
|
|
|
|
/// <summary>
|
|
/// If true, ignores SlotFlags and can magnet pickup on hands/ground.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField]
|
|
[AutoNetworkedField]
|
|
public bool ForcePickup = true;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("range")]
|
|
public float Range = 1f;
|
|
}
|