Add missing MagnetState attribute (#14715)

This commit is contained in:
Leon Friedrich
2023-03-17 14:50:10 +13:00
committed by GitHub
parent d89f4670f1
commit cce75f4d72

View File

@@ -1,7 +1,7 @@
using Content.Shared.Radio; using Content.Shared.Radio;
using Content.Shared.Salvage;
using Robust.Shared.GameStates; using Robust.Shared.GameStates;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Content.Shared.Salvage;
namespace Content.Server.Salvage namespace Content.Server.Salvage
{ {
@@ -94,7 +94,8 @@ namespace Content.Server.Salvage
public int PreviousCharge = 5; public int PreviousCharge = 5;
} }
[CopyByRef]
[CopyByRef, DataRecord]
public record struct MagnetState(MagnetStateType StateType, TimeSpan Until) public record struct MagnetState(MagnetStateType StateType, TimeSpan Until)
{ {
public static readonly MagnetState Inactive = new (MagnetStateType.Inactive, TimeSpan.Zero); public static readonly MagnetState Inactive = new (MagnetStateType.Inactive, TimeSpan.Zero);