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

View File

@@ -102,8 +102,6 @@
- type: BorgChassis - type: BorgChassis
- type: WiresPanel - type: WiresPanel
- type: ActivatableUIRequiresPanel - type: ActivatableUIRequiresPanel
- type: Wires
layoutId: Borg
- type: NameIdentifier - type: NameIdentifier
group: Silicon group: Silicon
- type: ContainerContainer - type: ContainerContainer

View File

@@ -163,9 +163,6 @@
- type: Appearance - type: Appearance
- type: WiresVisuals - type: WiresVisuals
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-dawinstrument
layoutId: DawInstrument
- type: Machine - type: Machine
board: DawInstrumentMachineCircuitboard board: DawInstrumentMachineCircuitboard
- type: Instrument - type: Instrument

View File

@@ -66,9 +66,6 @@
bodyType: KinematicController bodyType: KinematicController
- type: Clickable - type: Clickable
- type: WiresPanel - type: WiresPanel
- type: Wires #we just want the panel
boardName: wires-board-name-mech
layoutId: Mech
- type: Fixtures - type: Fixtures
fixtures: fixtures:
fix1: fix1:

View File

@@ -71,5 +71,4 @@
beakerSlot: !type:ContainerSlot beakerSlot: !type:ContainerSlot
- type: StaticPrice - type: StaticPrice
price: 1000 price: 1000
- type: Wires
- type: WiresPanel - type: WiresPanel

View File

@@ -19,9 +19,6 @@
noRot: false noRot: false
- type: Machine - type: Machine
board: BoozeDispenserMachineCircuitboard board: BoozeDispenserMachineCircuitboard
- type: Wires
boardName: wires-board-name-booze
layoutId: BoozeDispenser
- type: GuideHelp - type: GuideHelp
guides: guides:
- Bartender - Bartender

View File

@@ -31,9 +31,6 @@
acts: ["Destruction"] acts: ["Destruction"]
- type: Machine - type: Machine
board: ChemDispenserMachineCircuitboard board: ChemDispenserMachineCircuitboard
- type: Wires
boardName: wires-board-name-chemdispenser
layoutId: ChemDispenser
- type: GuideHelp - type: GuideHelp
guides: guides:
- Chemicals - Chemicals

View File

@@ -19,9 +19,6 @@
noRot: false noRot: false
- type: Machine - type: Machine
board: SodaDispenserMachineCircuitboard board: SodaDispenserMachineCircuitboard
- type: Wires
boardName: wires-board-name-soda
layoutId: SodaDispenser
- type: GuideHelp - type: GuideHelp
guides: guides:
- Bartender - Bartender

View File

@@ -22,7 +22,7 @@
- type: RCDDeconstructable - type: RCDDeconstructable
cost: 4 cost: 4
delay: 6 delay: 6
fx: EffectRCDDeconstruct6 fx: EffectRCDDeconstruct6
- type: Destructible - type: Destructible
thresholds: thresholds:
- trigger: - trigger:
@@ -87,9 +87,6 @@
- type: Appearance - type: Appearance
- type: WiresVisuals - type: WiresVisuals
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-firelock
layoutId: Firelock
- type: UserInterface - type: UserInterface
interfaces: interfaces:
- key: enum.WiresUiKey.Key - key: enum.WiresUiKey.Key

View File

@@ -29,8 +29,6 @@
components: components:
- FitsInDispenser - FitsInDispenser
- type: Machine - type: Machine
- type: Wires
layoutId: chem
- type: WiresPanel - type: WiresPanel
- type: WiresVisuals - type: WiresVisuals
- type: ContainerContainer - type: ContainerContainer

View File

@@ -37,9 +37,6 @@
color: "#fca3c0" color: "#fca3c0"
- type: Appearance - type: Appearance
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-vessel
layoutId: Vessel
- type: AmbientSound - type: AmbientSound
enabled: false enabled: false
range: 3 range: 3
@@ -198,9 +195,6 @@
- type: Appearance - type: Appearance
- type: WiresPanel - type: WiresPanel
- type: WiresVisuals - type: WiresVisuals
- type: Wires
boardName: wires-board-name-ape
layoutId: Ape
- type: GenericVisualizer - type: GenericVisualizer
visuals: visuals:
enum.PowerDeviceVisuals.Powered: enum.PowerDeviceVisuals.Powered:
@@ -290,9 +284,6 @@
fuelCost: 10 fuelCost: 10
doAfterDelay: 5 doAfterDelay: 5
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-anomalygenerator
layoutId: AnomalyGenerator
- type: Destructible - type: Destructible
thresholds: thresholds:
- trigger: - trigger:

View File

@@ -143,9 +143,6 @@
Blunt: 10 Blunt: 10
- type: Machine - type: Machine
board: ArtifactCrusherMachineCircuitboard board: ArtifactCrusherMachineCircuitboard
- type: Wires
boardName: wires-board-name-crusher
layoutId: Crusher
- type: WiresPanel - type: WiresPanel
- type: Sprite - type: Sprite
sprite: Structures/Machines/artifact_crusher.rsi sprite: Structures/Machines/artifact_crusher.rsi

View File

@@ -63,9 +63,6 @@
False: { visible: false } False: { visible: false }
# Machine / Construction stuff # Machine / Construction stuff
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-chemmaster
layoutId: chem_master
- type: Machine - type: Machine
board: ChemMasterMachineCircuitboard board: ChemMasterMachineCircuitboard
- type: ContainerContainer - type: ContainerContainer

View File

@@ -52,9 +52,6 @@
materialWhiteList: materialWhiteList:
- Biomass - Biomass
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-cloningpod
layoutId: CloningPod
- type: ApcPowerReceiver - type: ApcPowerReceiver
powerLoad: 200 #Receives most of its power from the console powerLoad: 200 #Receives most of its power from the console
- type: Appearance - type: Appearance

View File

@@ -98,9 +98,6 @@
- type: Machine - type: Machine
board: FatExtractorMachineCircuitboard board: FatExtractorMachineCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-fatextractor
layoutId: FatExtractor
- type: Appearance - type: Appearance
- type: Speech - type: Speech
speechVerb: Robotic speechVerb: Robotic

View File

@@ -52,9 +52,6 @@
path: /Audio/Items/rped.ogg path: /Audio/Items/rped.ogg
- type: WiresPanel - type: WiresPanel
- type: WiresVisuals - type: WiresVisuals
- type: Wires
boardName: wires-board-name-flatpacker
layoutId: Flatpacker
- type: Appearance - type: Appearance
- type: ActivatableUI - type: ActivatableUI
key: enum.FlatpackCreatorUIKey.Key key: enum.FlatpackCreatorUIKey.Key

View File

@@ -120,9 +120,6 @@
min: 1 min: 1
max: 1 max: 1
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-minigravitygenerator
layoutId: MiniGravityGenerator
- type: Machine - type: Machine
board: MiniGravityGeneratorCircuitboard board: MiniGravityGeneratorCircuitboard
- type: ApcPowerReceiver - type: ApcPowerReceiver

View File

@@ -33,9 +33,6 @@
- !type:DoActsBehavior - !type:DoActsBehavior
acts: ["Destruction"] acts: ["Destruction"]
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-autolathe
layoutId: Autolathe
- type: ActivatableUI - type: ActivatableUI
key: enum.LatheUiKey.Key key: enum.LatheUiKey.Key
- type: ActivatableUIRequiresPower - type: ActivatableUIRequiresPower
@@ -239,9 +236,6 @@
map: ["enum.WiresVisualLayers.MaintenancePanel"] map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: Machine - type: Machine
board: ProtolatheMachineCircuitboard board: ProtolatheMachineCircuitboard
- type: Wires
boardName: wires-board-name-protolathe
layoutId: Protolathe
- type: MaterialStorage - type: MaterialStorage
whitelist: whitelist:
tags: tags:

View File

@@ -61,9 +61,6 @@
- type: Machine - type: Machine
board: MaterialReclaimerMachineCircuitboard board: MaterialReclaimerMachineCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-reclaimer
layoutId: Reclaimer
- type: MaterialReclaimer - type: MaterialReclaimer
whitelist: whitelist:
components: components:

View File

@@ -69,9 +69,6 @@
- type: Machine - type: Machine
board: MedicalScannerMachineCircuitboard board: MedicalScannerMachineCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-medicalscanner
layoutId: MedicalScanner
- type: Appearance - type: Appearance
- type: Climbable - type: Climbable
- type: ApcPowerReceiver - type: ApcPowerReceiver

View File

@@ -23,8 +23,6 @@
priority: Low priority: Low
- type: ExtensionCableReceiver - type: ExtensionCableReceiver
- type: WiresPanel - type: WiresPanel
- type: Wires
layoutId: rndserver
- type: WiresVisuals - type: WiresVisuals
- type: Machine - type: Machine
board: ResearchAndDevelopmentServerMachineCircuitboard board: ResearchAndDevelopmentServerMachineCircuitboard

View File

@@ -51,9 +51,6 @@
- type: Machine - type: Machine
board: TelecomServerCircuitboard board: TelecomServerCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-telecomserver
layoutId: TelecomServer
- type: Transform - type: Transform
anchored: true anchored: true
- type: Pullable - type: Pullable

View File

@@ -245,9 +245,6 @@
inHandsOnly: false inHandsOnly: false
key: enum.ThermomachineUiKey.Key key: enum.ThermomachineUiKey.Key
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-thermomachine
layoutId: Thermomachine
- type: WiresVisuals - type: WiresVisuals
- type: NodeContainer - type: NodeContainer
nodes: nodes:
@@ -430,9 +427,6 @@
- type: Machine - type: Machine
board: CondenserMachineCircuitBoard board: CondenserMachineCircuitBoard
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-condenser
layoutId: Condenser
- type: WiresVisuals - type: WiresVisuals
- type: Destructible - type: Destructible
thresholds: thresholds:

View File

@@ -42,9 +42,6 @@
# Construction, interaction # Construction, interaction
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-generator
layoutId: Generator
- type: UserInterface - type: UserInterface
interfaces: interfaces:
- key: enum.GeneratorComponentUiKey.Key - key: enum.GeneratorComponentUiKey.Key
@@ -356,4 +353,4 @@
damage: 75 damage: 75
behaviors: behaviors:
- !type:SolutionExplosionBehavior - !type:SolutionExplosionBehavior
solution: tank solution: tank

View File

@@ -97,9 +97,6 @@
supplyRampRate: 500 supplyRampRate: 500
- type: WallMount - type: WallMount
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-apc
layoutId: APC
- type: WiresVisuals - type: WiresVisuals
- type: Damageable - type: Damageable
damageContainer: Inorganic damageContainer: Inorganic

View File

@@ -83,9 +83,6 @@
visible: false visible: false
- type: Machine - type: Machine
board: CellRechargerCircuitboard board: CellRechargerCircuitboard
- type: Wires
boardName: wires-board-name-recharger
layoutId: Recharger
- type: WiresPanel - type: WiresPanel
- type: GenericVisualizer - type: GenericVisualizer
visuals: visuals:
@@ -250,8 +247,6 @@
- machine_parts - machine_parts
- machine_board - machine_board
- entity_storage - entity_storage
- type: Wires
layoutId: borgcharger
- type: WiresPanel - type: WiresPanel
- type: WiresVisuals - type: WiresVisuals
- type: Machine - type: Machine

View File

@@ -67,9 +67,6 @@
color: "#c9c042" color: "#c9c042"
castShadows: false castShadows: false
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-smes
layoutId: SMES
- type: Machine - type: Machine
board: SMESMachineCircuitboard board: SMESMachineCircuitboard
- type: StationInfiniteBatteryTarget - type: StationInfiniteBatteryTarget

View File

@@ -92,9 +92,6 @@
intensitySlope: 2 intensitySlope: 2
totalIntensity: 200 totalIntensity: 200
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-substation
layoutId: Substation
- type: Machine - type: Machine
board: SubstationMachineCircuitboard board: SubstationMachineCircuitboard
- type: StationInfiniteBatteryTarget - type: StationInfiniteBatteryTarget

View File

@@ -81,9 +81,6 @@
- type: Machine - type: Machine
board: HydroponicsTrayMachineCircuitboard board: HydroponicsTrayMachineCircuitboard
- type: WiresPanel - type: WiresPanel
- type: Wires
boardName: wires-board-name-hydroponicstray
layoutId: HydroponicsTray
- type: AmbientSound - type: AmbientSound
volume: -9 volume: -9
range: 5 range: 5