-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
15 deletions.
There are no files selected for viewing
19 changes: 4 additions & 15 deletions
19
Content.Shared/Storage/Components/MagnetPickupComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |