Show / Hide Table of Contents

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 Source

ClickSound

Declaration
public SoundSpecifier ClickSound
Field Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

OffPort

The port that gets signaled when the switch turns off.

Declaration
public string OffPort
Field Value
Type Description
System.String
| Improve this Doc View Source

OnPort

The port that gets signaled when the switch turns on.

Declaration
public string OnPort
Field Value
Type Description
System.String
| Improve this Doc View Source

State

Declaration
public bool State
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾