Category:Electrical Components: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
BTGamepedia>QuaternionMark
No edit summary
BTGamepedia>QuaternionMark
No edit summary
Line 1: Line 1:
{| class="wikitable"
{| class="wikitable"
!
! class="header" |Name
! class="header" |Name
! class="header" |Description
! class="header" |Description
!
|-
|-
|
|Wire
|Wire
|Can be used to carry signals and power between items
|Can be used to carry signals and power between items.
|
|-
|-
|
|And Component
|And Component
|If the two inputs receive a signal within a specific timeframe, the component sends a signal through the "signal_out" connector. The component also has a "set_output" connector, which can be used for setting the output signal to a desired value ("1" by default).
|If the two inputs receive a signal within a specific timeframe, the component sends a signal through the "signal_out" connector. The component also has a "set_output" connector, which can be used for setting the output signal to a desired value ("1" by default).
|
|-
|-
|
|Or Component
|Or Component
|Same as the And Component, but the output signal is sent if either of the inputs receives a signal.
|Same as the And Component, but the output signal is sent if either of the inputs receives a signal.
|
|-
|-
|
|Not Component
|Not Component
|Has only one input and one output. If the component receives a signal "0", it sends out "1" through the output and vice versa.
|Has only one input and one output. If the component receives a signal "0", it sends out "1" through the output and vice versa.
|
|-
|-
|
|Signal Check Component
|Signal Check Component
|Compares the received signal with a specific string and outputs "1" if they are the same, otherwise outputs "0".
|Compares the received signal with a specific string and outputs "1" if they are the same, otherwise outputs "0".
|
|-
|-
|
|RegEx Find Component
|RegEx Find Component
|Similar to the signal check component, except that the signal is matched to a regular expression instead of a string. RegEx is a separate language that you can learn more about on external sites.  
|Similar to the signal check component, except that the signal is matched to a regular expression instead of a string. RegEx is a separate language that you can learn more about on external sites.  
|
|-
|-
|
|Oxygen Detector
|Oxygen Detector
|Outputs a value from 0 to 100 depending on the air quality in the room.
|Outputs a value from 0 to 100 depending on the air quality in the room.
|
|-
|-
|
|Light Component
|Light Component
|Has two inputs: "toggle" and "set_state". Toggle turns the light on/off whenever it receives any signal other than "0", set_state turns the light off if it receives "0" and on if it receives any other signal.
|Has two inputs: "toggle" and "set_state". Toggle turns the light on/off whenever it receives any signal other than "0", set_state turns the light off if it receives "0" and on if it receives any other signal.
|
|}
|}

Revision as of 01:05, 1 August 2015

Name Description
Wire Can be used to carry signals and power between items.
And Component If the two inputs receive a signal within a specific timeframe, the component sends a signal through the "signal_out" connector. The component also has a "set_output" connector, which can be used for setting the output signal to a desired value ("1" by default).
Or Component Same as the And Component, but the output signal is sent if either of the inputs receives a signal.
Not Component Has only one input and one output. If the component receives a signal "0", it sends out "1" through the output and vice versa.
Signal Check Component Compares the received signal with a specific string and outputs "1" if they are the same, otherwise outputs "0".
RegEx Find Component Similar to the signal check component, except that the signal is matched to a regular expression instead of a string. RegEx is a separate language that you can learn more about on external sites.
Oxygen Detector Outputs a value from 0 to 100 depending on the air quality in the room.
Light Component Has two inputs: "toggle" and "set_state". Toggle turns the light on/off whenever it receives any signal other than "0", set_state turns the light off if it receives "0" and on if it receives any other signal.