Add explosive cord. (#25875)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user