Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move air sensor components into abstract base prototype #29261

Merged
merged 1 commit into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading