Skip to content

Commit

Permalink
Move air sensor components into abstract base prototype (#29261)
Browse files Browse the repository at this point in the history
  • Loading branch information
Partmedia authored Jun 22, 2024
1 parent 1048817 commit bb61f44
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- type: CollideOnAnchor

- type: entity
parent: GasUnaryBase
parent: [GasUnaryBase, AirSensorBase]
id: GasVentPump
name: air vent
description: Has a valve and a pump attached to it.
Expand All @@ -31,28 +31,7 @@
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
- type: DeviceNetwork
deviceNetId: AtmosDevices
receiveFrequencyId: AtmosMonitor
transmitFrequencyId: AtmosMonitor
prefix: device-address-prefix-vent
sendBroadcastAttemptEvent: true
examinableAddress: true
- type: WiredNetworkConnection
- type: DeviceNetworkRequiresPower
- type: AtmosDevice
- type: AtmosMonitor
temperatureThresholdId: stationTemperature
pressureThresholdId: stationPressure
gasThresholdPrototypes:
Oxygen: stationOxygen
Nitrogen: ignore
CarbonDioxide: stationCO2
Plasma: stationPlasma # everything below is usually bad
Tritium: danger
WaterVapor: stationWaterVapor
Ammonia: stationAmmonia
NitrousOxide: stationNO
Frezon: danger
- type: Tag
tags:
- GasVent
Expand Down Expand Up @@ -115,7 +94,7 @@
node: passivevent

- type: entity
parent: GasUnaryBase
parent: [GasUnaryBase, AirSensorBase]
id: GasVentScrubber
name: air scrubber
description: Has a valve and pump attached to it.
Expand All @@ -125,25 +104,7 @@
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
- type: DeviceNetwork
deviceNetId: AtmosDevices
receiveFrequencyId: AtmosMonitor
transmitFrequencyId: AtmosMonitor
prefix: device-address-prefix-scrubber
examinableAddress: true
- type: DeviceNetworkRequiresPower
- type: AtmosMonitor
temperatureThresholdId: stationTemperature
pressureThresholdId: stationPressure
gasThresholdPrototypes:
Oxygen: stationOxygen
Nitrogen: ignore
CarbonDioxide: stationCO2
Plasma: stationPlasma # everything below is usually bad
Tritium: danger
WaterVapor: stationWaterVapor
Ammonia: stationAmmonia
NitrousOxide: stationNO
Frezon: danger
- type: Tag
tags:
- GasScrubber
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,39 @@
- type: entity
id: AirSensorBase
abstract: true
components:
- type: DeviceNetwork
deviceNetId: AtmosDevices
receiveFrequencyId: AtmosMonitor
transmitFrequencyId: AtmosMonitor
prefix: device-address-prefix-sensor
sendBroadcastAttemptEvent: true
examinableAddress: true
- type: WiredNetworkConnection
- type: DeviceNetworkRequiresPower
- type: AtmosDevice
- type: AtmosMonitor
temperatureThresholdId: stationTemperature
pressureThresholdId: stationPressure
gasThresholdPrototypes:
Oxygen: stationOxygen
Nitrogen: ignore
CarbonDioxide: stationCO2
Plasma: stationPlasma # everything below is usually bad
Tritium: danger
WaterVapor: stationWaterVapor
Ammonia: stationAmmonia
NitrousOxide: stationNO
Frezon: danger
- type: Tag
tags:
- AirSensor

- type: entity
id: AirSensor
name: air sensor
description: Air sensor. It senses air.
parent: AirSensorBase
placement:
mode: SnapgridCenter
components:
Expand Down Expand Up @@ -35,32 +67,6 @@
- type: InteractionOutline
- type: ApcPowerReceiver
- type: ExtensionCableReceiver
- type: DeviceNetwork
deviceNetId: AtmosDevices
receiveFrequencyId: AtmosMonitor
transmitFrequencyId: AtmosMonitor
prefix: device-address-prefix-sensor
sendBroadcastAttemptEvent: true
examinableAddress: true
- type: WiredNetworkConnection
- type: DeviceNetworkRequiresPower
- type: AtmosDevice
- type: AtmosMonitor
temperatureThresholdId: stationTemperature
pressureThresholdId: stationPressure
gasThresholdPrototypes:
Oxygen: stationOxygen
Nitrogen: ignore
CarbonDioxide: stationCO2
Plasma: stationPlasma # everything below is usually bad
Tritium: danger
WaterVapor: stationWaterVapor
Ammonia: stationAmmonia
NitrousOxide: stationNO
Frezon: danger
- type: Tag
tags:
- AirSensor
- type: AccessReader
access: [ [ "Atmospherics" ] ]
- type: Construction
Expand Down

0 comments on commit bb61f44

Please sign in to comment.