using Content.Server.Power.EntitySystems; using Content.Shared.Tools; using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Server.Power.Components { /// /// Allows the attached entity to be destroyed by a cutting tool, dropping a piece of cable. /// [RegisterComponent] [Friend(typeof(CableSystem))] public sealed class CableComponent : Component { [DataField("cableDroppedOnCutPrototype", customTypeSerializer: typeof(PrototypeIdSerializer))] public readonly string CableDroppedOnCutPrototype = "CableHVStack1"; [DataField("cuttingQuality", customTypeSerializer:typeof(PrototypeIdSerializer))] public string CuttingQuality = "Cutting"; /// /// Checked by to determine if there is /// already a cable of a type on a tile. /// [DataField("cableType")] public CableType CableType = CableType.HighVoltage; [DataField("cuttingDelay")] public float CuttingDelay = 0.25f; } public enum CableType { HighVoltage, MediumVoltage, Apc, } }