Class SignalSwitchComponent
Simple switch that will fire ports when toggled on or off. A button is jsut a switch that signals on the same port regardless of its state.
Inheritance
System.Object
SignalSwitchComponent
Namespace: Content.Server.DeviceLinking.Components
Assembly: Content.Server.dll
Syntax
public sealed class SignalSwitchComponent : Component
Fields
| Improve this Doc View SourceClickSound
Declaration
public SoundSpecifier ClickSound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
OffPort
The port that gets signaled when the switch turns off.
Declaration
public string OffPort
Field Value
Type | Description |
---|---|
System.String |
OnPort
The port that gets signaled when the switch turns on.
Declaration
public string OnPort
Field Value
Type | Description |
---|---|
System.String |
State
Declaration
public bool State
Field Value
Type | Description |
---|---|
System.Boolean |
StatusPort
The port that gets signaled with the switch's current status. This is only used if OnPort is different from OffPort, not in the case of a toggle switch.
Declaration
public string StatusPort
Field Value
Type | Description |
---|---|
System.String |