2023-06-13 06:37:53 +00:00
|
|
|
using Content.Shared.Construction.Prototypes;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
2022-11-14 01:45:45 -06:00
|
|
|
using Robust.Shared.Serialization;
|
2023-06-13 06:37:53 +00:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2022-11-14 01:45:45 -06:00
|
|
|
|
|
|
|
|
namespace Content.Shared.Salvage;
|
|
|
|
|
|
2023-06-13 06:37:53 +00:00
|
|
|
public abstract class SharedSalvageMagnetComponent : Component
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The machine part that affects the attaching and cooldown times
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("machinePartDelay", customTypeSerializer: typeof(PrototypeIdSerializer<MachinePartPrototype>)), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public string MachinePartDelay = "Capacitor";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A multiplier applied to the attaching and cooldown times for each level of <see cref="MachinePartDelay"/>
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("partRatingDelay"), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float PartRatingDelay = 0.75f;
|
|
|
|
|
}
|
2022-11-14 01:45:45 -06:00
|
|
|
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public enum SalvageMagnetVisuals : byte
|
|
|
|
|
{
|
|
|
|
|
ChargeState,
|
|
|
|
|
Ready,
|
|
|
|
|
ReadyBlinking,
|
|
|
|
|
Unready,
|
|
|
|
|
UnreadyBlinking
|
|
|
|
|
}
|