mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 17:17:25 +00:00
* Add magnet pickup system from Frontier * No wl needed here * Add translation strings * Making code optimizations, missing component on upgraded smelter * Update lathe.yml --------- Co-authored-by: Velcroboy <> Co-authored-by: VMSolidus <evilexecutive@gmail.com>
21 lines
644 B
C#
21 lines
644 B
C#
namespace Content.Shared.Frontier.Storage.Components;
|
|
|
|
/// <summary>
|
|
/// Applies an ongoing pickup area around the attached entity.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class MaterialStorageMagnetPickupComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("nextScan")]
|
|
public TimeSpan NextScan = TimeSpan.Zero;
|
|
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("range")]
|
|
public float Range = 1f;
|
|
|
|
/// <summary>
|
|
/// Frontier - Is the magnet currently enabled?
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite), DataField("magnetEnabled")]
|
|
public bool MagnetEnabled = false;
|
|
}
|