Add explosive cord. (#25875)

This commit is contained in:
IProduceWidgets
2025-09-25 17:33:28 -04:00
committed by GitHub
parent 5e55974c0e
commit 80947b128a
54 changed files with 601 additions and 24 deletions

View File

@@ -1,16 +1,35 @@
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
using Content.Shared.Power;
using Content.Shared.Whitelist;
namespace Content.Server.Power.Components
{
[RegisterComponent]
public sealed partial class CablePlacerComponent : Component
{
/// <summary>
/// The structure prototype for the cable coil to place.
/// </summary>
[DataField("cablePrototypeID", customTypeSerializer:typeof(PrototypeIdSerializer<EntityPrototype>))]
public string? CablePrototypeId = "CableHV";
/// <summary>
/// What kind of wire prevents placing this wire over it as CableType.
/// </summary>
[DataField("blockingWireType")]
public CableType BlockingCableType = CableType.HighVoltage;
/// <summary>
/// Blacklist for things the cable cannot be placed over. For things that arent cables with CableTypes.
/// </summary>
[DataField]
public EntityWhitelist Blacklist = new();
/// <summary>
/// Whether the placed cable should go over tiles or not.
/// </summary>
[DataField]
public bool OverTile;
}
}