Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dvir001 committed Jan 22, 2025
1 parent 456d02e commit c99e50f
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions Content.Shared/Storage/Components/MagnetPickupComponent.cs
Original file line number Diff line number Diff line change
@@ -1,34 +1,23 @@
using Content.Shared.Inventory;
using Robust.Shared.GameStates;

// namespace Content.Server.Storage.Components;
namespace Content.Shared.Storage.Components; // Frontier
namespace Content.Server.Storage.Components;

/// <summary>
/// Applies an ongoing pickup area around the attached entity.
/// </summary>
[RegisterComponent, AutoGenerateComponentPause]
[NetworkedComponent, AutoGenerateComponentState] // Frontier
public sealed partial class MagnetPickupComponent : Component
{
[ViewVariables(VVAccess.ReadWrite), DataField("nextScan")]
[AutoPausedField]
public TimeSpan NextScan = TimeSpan.Zero;

[ViewVariables(VVAccess.ReadWrite), DataField("range")]
public float Range = 1f;

/// <summary>
/// What container slot the magnet needs to be in to work (if not a fixture)
/// What container slot the magnet needs to be in to work.
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("slotFlags")]
public SlotFlags SlotFlags = SlotFlags.BELT;

// Everything below this line is from Frontier

/// <summary>
/// Is the magnet currently enabled?
/// </summary>
[AutoNetworkedField, ViewVariables(VVAccess.ReadWrite), DataField("magnetEnabled")]
public bool MagnetEnabled = true;
[ViewVariables(VVAccess.ReadWrite), DataField("range")]
public float Range = 1f;
}

0 comments on commit c99e50f

Please sign in to comment.