Add interlocking airlocks (#14177)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
signal-port-name-toggle = Autoclose
|
||||
signal-port-description-toggle = Toggles whether the device should automatically close.
|
||||
signal-port-name-autoclose = Autoclose
|
||||
signal-port-description-autoclose = Toggles whether the device should automatically close.
|
||||
|
||||
signal-port-name-toggle = Toggle
|
||||
signal-port-description-toggle = Toggles the state of a device.
|
||||
@@ -22,6 +22,9 @@ signal-port-description-open = Opens a device.
|
||||
signal-port-name-close = Close
|
||||
signal-port-description-close = Closes a device.
|
||||
|
||||
signal-port-name-doorbolt = Door bolt
|
||||
signal-port-description-doorbolt = Toggles door bolt.
|
||||
|
||||
signal-port-name-trigger = Trigger
|
||||
signal-port-description-trigger = Triggers some mechanism on the device.
|
||||
|
||||
|
||||
@@ -13,6 +13,9 @@ signal-port-description-left = This port is invoked whenever the lever is moved
|
||||
signal-port-name-right = Right
|
||||
signal-port-description-right = This port is invoked whenever the lever is moved to the rightmost position.
|
||||
|
||||
signal-port-name-doorstatus = Door status
|
||||
signal-port-description-doorstatus = This port is invoked whenever the door's status changes.
|
||||
|
||||
signal-port-name-middle = Middle
|
||||
signal-port-description-middle = This port is invoked whenever the lever is moved to the neutral position.
|
||||
|
||||
|
||||
@@ -38,6 +38,11 @@
|
||||
name: signal-port-name-close
|
||||
description: signal-port-description-close
|
||||
|
||||
- type: sinkPort
|
||||
id: DoorBolt
|
||||
name: signal-port-name-doorbolt
|
||||
description: signal-port-description-doorbolt
|
||||
|
||||
- type: sinkPort
|
||||
id: Trigger
|
||||
name: signal-port-name-trigger
|
||||
|
||||
@@ -34,6 +34,11 @@
|
||||
description: signal-port-description-middle
|
||||
defaultLinks: [ Off, Close ]
|
||||
|
||||
- type: sourcePort
|
||||
id: DoorStatus
|
||||
name: signal-port-name-doorstatus
|
||||
description: signal-port-description-status
|
||||
|
||||
- type: sourcePort
|
||||
id: OrderSender
|
||||
name: signal-port-name-order-sender
|
||||
|
||||
@@ -89,6 +89,10 @@
|
||||
- Close
|
||||
- Toggle
|
||||
- AutoClose
|
||||
- DoorBolt
|
||||
- type: DeviceLinkSource
|
||||
ports:
|
||||
- DoorStatus
|
||||
- type: UserInterface
|
||||
interfaces:
|
||||
- key: enum.WiresUiKey.Key
|
||||
|
||||
26
Resources/Prototypes/Entities/Structures/gates.yml
Normal file
26
Resources/Prototypes/Entities/Structures/gates.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
- type: entity
|
||||
id: OrGate
|
||||
name: MS7432
|
||||
description: Dual 2-Input OR Gate
|
||||
parent: BaseItem
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
snap:
|
||||
- Wallmount
|
||||
components:
|
||||
- type: Anchorable
|
||||
- type: Sprite
|
||||
sprite: Objects/Devices/gates.rsi
|
||||
state: or
|
||||
- type: Rotatable
|
||||
- type: OrGate
|
||||
- type: SignalReceiver
|
||||
inputs:
|
||||
A1: []
|
||||
B1: []
|
||||
A2: []
|
||||
B2: []
|
||||
- type: SignalTransmitter
|
||||
outputs:
|
||||
O1: []
|
||||
O2: []
|
||||
@@ -72,3 +72,28 @@
|
||||
id: ArtifactAnalyzerReceiver
|
||||
name: signal-port-name-artifact-analyzer-receiver
|
||||
description: signal-port-description-artifact-analyzer-receiver
|
||||
|
||||
- type: receiverPort
|
||||
id: DoorBolt
|
||||
name: "Bolt"
|
||||
description: "Bolt door when HIGH."
|
||||
|
||||
- type: receiverPort
|
||||
id: A1
|
||||
name: "Input A1"
|
||||
description: "Input A1"
|
||||
|
||||
- type: receiverPort
|
||||
id: B1
|
||||
name: "Input B1"
|
||||
description: "Input B1"
|
||||
|
||||
- type: receiverPort
|
||||
id: A2
|
||||
name: "Input A2"
|
||||
description: "Input A2"
|
||||
|
||||
- type: receiverPort
|
||||
id: B2
|
||||
name: "Input B2"
|
||||
description: "Input B2"
|
||||
|
||||
@@ -67,3 +67,18 @@
|
||||
name: signal-port-name-artifact-analyzer-sender
|
||||
description: signal-port-description-artifact-analyzer-sender
|
||||
defaultLinks: [ ArtifactAnalyzerReceiver ]
|
||||
|
||||
- type: transmitterPort
|
||||
id: DoorStatus
|
||||
name: "Door Status"
|
||||
description: "HIGH when door is open, LOW when door is closed."
|
||||
|
||||
- type: transmitterPort
|
||||
id: O1
|
||||
name: "Output 1"
|
||||
description: "Output 1"
|
||||
|
||||
- type: transmitterPort
|
||||
id: O2
|
||||
name: "Output 2"
|
||||
description: "Output 2"
|
||||
|
||||
14
Resources/Textures/Objects/Devices/gates.rsi/meta.json
Normal file
14
Resources/Textures/Objects/Devices/gates.rsi/meta.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Kevin Zheng 2022",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "or"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/Objects/Devices/gates.rsi/or.png
Normal file
BIN
Resources/Textures/Objects/Devices/gates.rsi/or.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.1 KiB |
Reference in New Issue
Block a user