Validate wire layout prototypes and remove invalid WiresComponents (#26682)

Validate wire layout prototypes; delete invalid wirescomponents.
This commit is contained in:
Tayrtahn
2024-04-02 23:13:59 -04:00
committed by GitHub
parent c5fe41c119
commit 74c45da718
29 changed files with 4 additions and 96 deletions

View File

@@ -1,4 +1,5 @@
using Robust.Shared.Audio;
using Robust.Shared.Prototypes;
namespace Content.Server.Wires;
@@ -15,7 +16,7 @@ public sealed partial class WiresComponent : Component
/// The layout ID of this entity's wires.
/// </summary>
[DataField(required: true)]
public string LayoutId { get; set; } = default!;
public ProtoId<WireLayoutPrototype> LayoutId { get; set; } = default!;
/// <summary>
/// The serial number of this board. Randomly generated upon start,