From: Tayrtahn Date: Wed, 3 Apr 2024 03:13:59 +0000 (-0400) Subject: Validate wire layout prototypes and remove invalid WiresComponents (#26682) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=74c45da718d2a2a89e7445af5282855442e77773;p=space-station-14.git Validate wire layout prototypes and remove invalid WiresComponents (#26682) Validate wire layout prototypes; delete invalid wirescomponents. --- diff --git a/Content.Server/Wires/WiresComponent.cs b/Content.Server/Wires/WiresComponent.cs index 526b73a300..89e1873c00 100644 --- a/Content.Server/Wires/WiresComponent.cs +++ b/Content.Server/Wires/WiresComponent.cs @@ -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. /// [DataField(required: true)] - public string LayoutId { get; set; } = default!; + public ProtoId LayoutId { get; set; } = default!; /// /// The serial number of this board. Randomly generated upon start, diff --git a/Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml b/Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml index df5b8d7519..9ca99f9982 100644 --- a/Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml +++ b/Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml @@ -102,8 +102,6 @@ - type: BorgChassis - type: WiresPanel - type: ActivatableUIRequiresPanel - - type: Wires - layoutId: Borg - type: NameIdentifier group: Silicon - type: ContainerContainer diff --git a/Resources/Prototypes/Entities/Objects/Fun/Instruments/instruments_structures.yml b/Resources/Prototypes/Entities/Objects/Fun/Instruments/instruments_structures.yml index ad4d2eac8a..191bb75e50 100644 --- a/Resources/Prototypes/Entities/Objects/Fun/Instruments/instruments_structures.yml +++ b/Resources/Prototypes/Entities/Objects/Fun/Instruments/instruments_structures.yml @@ -163,9 +163,6 @@ - type: Appearance - type: WiresVisuals - type: WiresPanel - - type: Wires - boardName: wires-board-name-dawinstrument - layoutId: DawInstrument - type: Machine board: DawInstrumentMachineCircuitboard - type: Instrument diff --git a/Resources/Prototypes/Entities/Objects/Specific/Mech/mechs.yml b/Resources/Prototypes/Entities/Objects/Specific/Mech/mechs.yml index 5a2587ff71..6e5362d9bb 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/Mech/mechs.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/Mech/mechs.yml @@ -66,9 +66,6 @@ bodyType: KinematicController - type: Clickable - type: WiresPanel - - type: Wires #we just want the panel - boardName: wires-board-name-mech - layoutId: Mech - type: Fixtures fixtures: fix1: diff --git a/Resources/Prototypes/Entities/Structures/Dispensers/base_structuredispensers.yml b/Resources/Prototypes/Entities/Structures/Dispensers/base_structuredispensers.yml index d87c5e700a..d661009b6d 100644 --- a/Resources/Prototypes/Entities/Structures/Dispensers/base_structuredispensers.yml +++ b/Resources/Prototypes/Entities/Structures/Dispensers/base_structuredispensers.yml @@ -71,5 +71,4 @@ beakerSlot: !type:ContainerSlot - type: StaticPrice price: 1000 - - type: Wires - type: WiresPanel diff --git a/Resources/Prototypes/Entities/Structures/Dispensers/booze.yml b/Resources/Prototypes/Entities/Structures/Dispensers/booze.yml index 1583bc451d..7bc12ca966 100644 --- a/Resources/Prototypes/Entities/Structures/Dispensers/booze.yml +++ b/Resources/Prototypes/Entities/Structures/Dispensers/booze.yml @@ -19,9 +19,6 @@ noRot: false - type: Machine board: BoozeDispenserMachineCircuitboard - - type: Wires - boardName: wires-board-name-booze - layoutId: BoozeDispenser - type: GuideHelp guides: - Bartender diff --git a/Resources/Prototypes/Entities/Structures/Dispensers/chem.yml b/Resources/Prototypes/Entities/Structures/Dispensers/chem.yml index 6c70cf9bca..681f0a390c 100644 --- a/Resources/Prototypes/Entities/Structures/Dispensers/chem.yml +++ b/Resources/Prototypes/Entities/Structures/Dispensers/chem.yml @@ -31,9 +31,6 @@ acts: ["Destruction"] - type: Machine board: ChemDispenserMachineCircuitboard - - type: Wires - boardName: wires-board-name-chemdispenser - layoutId: ChemDispenser - type: GuideHelp guides: - Chemicals diff --git a/Resources/Prototypes/Entities/Structures/Dispensers/soda.yml b/Resources/Prototypes/Entities/Structures/Dispensers/soda.yml index 323480506f..72468973ee 100644 --- a/Resources/Prototypes/Entities/Structures/Dispensers/soda.yml +++ b/Resources/Prototypes/Entities/Structures/Dispensers/soda.yml @@ -19,9 +19,6 @@ noRot: false - type: Machine board: SodaDispenserMachineCircuitboard - - type: Wires - boardName: wires-board-name-soda - layoutId: SodaDispenser - type: GuideHelp guides: - Bartender diff --git a/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml b/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml index 0dd65ab4d0..a678ab7443 100644 --- a/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml +++ b/Resources/Prototypes/Entities/Structures/Doors/Firelocks/firelock.yml @@ -22,7 +22,7 @@ - type: RCDDeconstructable cost: 4 delay: 6 - fx: EffectRCDDeconstruct6 + fx: EffectRCDDeconstruct6 - type: Destructible thresholds: - trigger: @@ -87,9 +87,6 @@ - type: Appearance - type: WiresVisuals - type: WiresPanel - - type: Wires - boardName: wires-board-name-firelock - layoutId: Firelock - type: UserInterface interfaces: - key: enum.WiresUiKey.Key diff --git a/Resources/Prototypes/Entities/Structures/Machines/Medical/chemistry_machines.yml b/Resources/Prototypes/Entities/Structures/Machines/Medical/chemistry_machines.yml index e2c210e7e6..23789730d0 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/Medical/chemistry_machines.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/Medical/chemistry_machines.yml @@ -29,8 +29,6 @@ components: - FitsInDispenser - type: Machine - - type: Wires - layoutId: chem - type: WiresPanel - type: WiresVisuals - type: ContainerContainer diff --git a/Resources/Prototypes/Entities/Structures/Machines/anomaly_equipment.yml b/Resources/Prototypes/Entities/Structures/Machines/anomaly_equipment.yml index 0064e7a4ae..ab09a03fef 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/anomaly_equipment.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/anomaly_equipment.yml @@ -37,9 +37,6 @@ color: "#fca3c0" - type: Appearance - type: WiresPanel - - type: Wires - boardName: wires-board-name-vessel - layoutId: Vessel - type: AmbientSound enabled: false range: 3 @@ -198,9 +195,6 @@ - type: Appearance - type: WiresPanel - type: WiresVisuals - - type: Wires - boardName: wires-board-name-ape - layoutId: Ape - type: GenericVisualizer visuals: enum.PowerDeviceVisuals.Powered: @@ -290,9 +284,6 @@ fuelCost: 10 doAfterDelay: 5 - type: WiresPanel - - type: Wires - boardName: wires-board-name-anomalygenerator - layoutId: AnomalyGenerator - type: Destructible thresholds: - trigger: diff --git a/Resources/Prototypes/Entities/Structures/Machines/artifact_analyzer.yml b/Resources/Prototypes/Entities/Structures/Machines/artifact_analyzer.yml index 1b183661f5..b00d6d8986 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/artifact_analyzer.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/artifact_analyzer.yml @@ -143,9 +143,6 @@ Blunt: 10 - type: Machine board: ArtifactCrusherMachineCircuitboard - - type: Wires - boardName: wires-board-name-crusher - layoutId: Crusher - type: WiresPanel - type: Sprite sprite: Structures/Machines/artifact_crusher.rsi diff --git a/Resources/Prototypes/Entities/Structures/Machines/chem_master.yml b/Resources/Prototypes/Entities/Structures/Machines/chem_master.yml index d7df219663..aee1246021 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/chem_master.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/chem_master.yml @@ -63,9 +63,6 @@ False: { visible: false } # Machine / Construction stuff - type: WiresPanel - - type: Wires - boardName: wires-board-name-chemmaster - layoutId: chem_master - type: Machine board: ChemMasterMachineCircuitboard - type: ContainerContainer diff --git a/Resources/Prototypes/Entities/Structures/Machines/cloning_machine.yml b/Resources/Prototypes/Entities/Structures/Machines/cloning_machine.yml index 5d9ab0dd7e..0451b39490 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/cloning_machine.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/cloning_machine.yml @@ -52,9 +52,6 @@ materialWhiteList: - Biomass - type: WiresPanel - - type: Wires - boardName: wires-board-name-cloningpod - layoutId: CloningPod - type: ApcPowerReceiver powerLoad: 200 #Receives most of its power from the console - type: Appearance diff --git a/Resources/Prototypes/Entities/Structures/Machines/fatextractor.yml b/Resources/Prototypes/Entities/Structures/Machines/fatextractor.yml index 9f09e49059..fc417e68d6 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/fatextractor.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/fatextractor.yml @@ -98,9 +98,6 @@ - type: Machine board: FatExtractorMachineCircuitboard - type: WiresPanel - - type: Wires - boardName: wires-board-name-fatextractor - layoutId: FatExtractor - type: Appearance - type: Speech speechVerb: Robotic diff --git a/Resources/Prototypes/Entities/Structures/Machines/flatpacker.yml b/Resources/Prototypes/Entities/Structures/Machines/flatpacker.yml index 54a32db69f..3244789a02 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/flatpacker.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/flatpacker.yml @@ -52,9 +52,6 @@ path: /Audio/Items/rped.ogg - type: WiresPanel - type: WiresVisuals - - type: Wires - boardName: wires-board-name-flatpacker - layoutId: Flatpacker - type: Appearance - type: ActivatableUI key: enum.FlatpackCreatorUIKey.Key diff --git a/Resources/Prototypes/Entities/Structures/Machines/gravity_generator.yml b/Resources/Prototypes/Entities/Structures/Machines/gravity_generator.yml index 2eb4f57fab..aebc4b03de 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/gravity_generator.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/gravity_generator.yml @@ -120,9 +120,6 @@ min: 1 max: 1 - type: WiresPanel - - type: Wires - boardName: wires-board-name-minigravitygenerator - layoutId: MiniGravityGenerator - type: Machine board: MiniGravityGeneratorCircuitboard - type: ApcPowerReceiver diff --git a/Resources/Prototypes/Entities/Structures/Machines/lathe.yml b/Resources/Prototypes/Entities/Structures/Machines/lathe.yml index 5a32839a47..c32f2992f9 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/lathe.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/lathe.yml @@ -33,9 +33,6 @@ - !type:DoActsBehavior acts: ["Destruction"] - type: WiresPanel - - type: Wires - boardName: wires-board-name-autolathe - layoutId: Autolathe - type: ActivatableUI key: enum.LatheUiKey.Key - type: ActivatableUIRequiresPower @@ -239,9 +236,6 @@ map: ["enum.WiresVisualLayers.MaintenancePanel"] - type: Machine board: ProtolatheMachineCircuitboard - - type: Wires - boardName: wires-board-name-protolathe - layoutId: Protolathe - type: MaterialStorage whitelist: tags: diff --git a/Resources/Prototypes/Entities/Structures/Machines/material_reclaimer.yml b/Resources/Prototypes/Entities/Structures/Machines/material_reclaimer.yml index 028e348fd4..9a9c5283c0 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/material_reclaimer.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/material_reclaimer.yml @@ -61,9 +61,6 @@ - type: Machine board: MaterialReclaimerMachineCircuitboard - type: WiresPanel - - type: Wires - boardName: wires-board-name-reclaimer - layoutId: Reclaimer - type: MaterialReclaimer whitelist: components: diff --git a/Resources/Prototypes/Entities/Structures/Machines/medical_scanner.yml b/Resources/Prototypes/Entities/Structures/Machines/medical_scanner.yml index 6f05baee94..de19db96b5 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/medical_scanner.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/medical_scanner.yml @@ -69,9 +69,6 @@ - type: Machine board: MedicalScannerMachineCircuitboard - type: WiresPanel - - type: Wires - boardName: wires-board-name-medicalscanner - layoutId: MedicalScanner - type: Appearance - type: Climbable - type: ApcPowerReceiver diff --git a/Resources/Prototypes/Entities/Structures/Machines/research.yml b/Resources/Prototypes/Entities/Structures/Machines/research.yml index 7b369f62cc..83525a0510 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/research.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/research.yml @@ -23,8 +23,6 @@ priority: Low - type: ExtensionCableReceiver - type: WiresPanel - - type: Wires - layoutId: rndserver - type: WiresVisuals - type: Machine board: ResearchAndDevelopmentServerMachineCircuitboard diff --git a/Resources/Prototypes/Entities/Structures/Machines/telecomms.yml b/Resources/Prototypes/Entities/Structures/Machines/telecomms.yml index e12826a8ce..6cc1fc7981 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/telecomms.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/telecomms.yml @@ -51,9 +51,6 @@ - type: Machine board: TelecomServerCircuitboard - type: WiresPanel - - type: Wires - boardName: wires-board-name-telecomserver - layoutId: TelecomServer - type: Transform anchored: true - type: Pullable diff --git a/Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml b/Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml index 03cce09699..4ee78f1213 100644 --- a/Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml +++ b/Resources/Prototypes/Entities/Structures/Piping/Atmospherics/unary.yml @@ -245,9 +245,6 @@ inHandsOnly: false key: enum.ThermomachineUiKey.Key - type: WiresPanel - - type: Wires - boardName: wires-board-name-thermomachine - layoutId: Thermomachine - type: WiresVisuals - type: NodeContainer nodes: @@ -430,9 +427,6 @@ - type: Machine board: CondenserMachineCircuitBoard - type: WiresPanel - - type: Wires - boardName: wires-board-name-condenser - layoutId: Condenser - type: WiresVisuals - type: Destructible thresholds: diff --git a/Resources/Prototypes/Entities/Structures/Power/Generation/portable_generator.yml b/Resources/Prototypes/Entities/Structures/Power/Generation/portable_generator.yml index 0c8afc87a4..dbaacd6abc 100644 --- a/Resources/Prototypes/Entities/Structures/Power/Generation/portable_generator.yml +++ b/Resources/Prototypes/Entities/Structures/Power/Generation/portable_generator.yml @@ -42,9 +42,6 @@ # Construction, interaction - type: WiresPanel - - type: Wires - boardName: wires-board-name-generator - layoutId: Generator - type: UserInterface interfaces: - key: enum.GeneratorComponentUiKey.Key @@ -356,4 +353,4 @@ damage: 75 behaviors: - !type:SolutionExplosionBehavior - solution: tank \ No newline at end of file + solution: tank diff --git a/Resources/Prototypes/Entities/Structures/Power/apc.yml b/Resources/Prototypes/Entities/Structures/Power/apc.yml index 7efa53e254..4df502791f 100644 --- a/Resources/Prototypes/Entities/Structures/Power/apc.yml +++ b/Resources/Prototypes/Entities/Structures/Power/apc.yml @@ -97,9 +97,6 @@ supplyRampRate: 500 - type: WallMount - type: WiresPanel - - type: Wires - boardName: wires-board-name-apc - layoutId: APC - type: WiresVisuals - type: Damageable damageContainer: Inorganic diff --git a/Resources/Prototypes/Entities/Structures/Power/chargers.yml b/Resources/Prototypes/Entities/Structures/Power/chargers.yml index 388cc3c987..582a5b0dee 100644 --- a/Resources/Prototypes/Entities/Structures/Power/chargers.yml +++ b/Resources/Prototypes/Entities/Structures/Power/chargers.yml @@ -83,9 +83,6 @@ visible: false - type: Machine board: CellRechargerCircuitboard - - type: Wires - boardName: wires-board-name-recharger - layoutId: Recharger - type: WiresPanel - type: GenericVisualizer visuals: @@ -250,8 +247,6 @@ - machine_parts - machine_board - entity_storage - - type: Wires - layoutId: borgcharger - type: WiresPanel - type: WiresVisuals - type: Machine diff --git a/Resources/Prototypes/Entities/Structures/Power/smes.yml b/Resources/Prototypes/Entities/Structures/Power/smes.yml index c2170a127a..1e3559e5a9 100644 --- a/Resources/Prototypes/Entities/Structures/Power/smes.yml +++ b/Resources/Prototypes/Entities/Structures/Power/smes.yml @@ -67,9 +67,6 @@ color: "#c9c042" castShadows: false - type: WiresPanel - - type: Wires - boardName: wires-board-name-smes - layoutId: SMES - type: Machine board: SMESMachineCircuitboard - type: StationInfiniteBatteryTarget diff --git a/Resources/Prototypes/Entities/Structures/Power/substation.yml b/Resources/Prototypes/Entities/Structures/Power/substation.yml index 94de12be18..4bd0bec5ea 100644 --- a/Resources/Prototypes/Entities/Structures/Power/substation.yml +++ b/Resources/Prototypes/Entities/Structures/Power/substation.yml @@ -92,9 +92,6 @@ intensitySlope: 2 totalIntensity: 200 - type: WiresPanel - - type: Wires - boardName: wires-board-name-substation - layoutId: Substation - type: Machine board: SubstationMachineCircuitboard - type: StationInfiniteBatteryTarget diff --git a/Resources/Prototypes/Entities/Structures/hydro_tray.yml b/Resources/Prototypes/Entities/Structures/hydro_tray.yml index 1ab1fd5b2f..8ea7172d8b 100644 --- a/Resources/Prototypes/Entities/Structures/hydro_tray.yml +++ b/Resources/Prototypes/Entities/Structures/hydro_tray.yml @@ -81,9 +81,6 @@ - type: Machine board: HydroponicsTrayMachineCircuitboard - type: WiresPanel - - type: Wires - boardName: wires-board-name-hydroponicstray - layoutId: HydroponicsTray - type: AmbientSound volume: -9 range: 5