Show / Hide Table of Contents

Class Wire

Inheritance
System.Object
Wire
Namespace: Content.Server.Wires
Assembly: Content.Server.dll
Syntax
public sealed class Wire : object

Constructors

| Improve this Doc View Source

Wire(EntityUid, Boolean, WireColor, WireLetter, Int32, IWireAction)

Declaration
public Wire(EntityUid owner, bool isCut, WireColor color, WireLetter letter, int position, IWireAction action)
Parameters
Type Name Description
EntityUid owner
System.Boolean isCut
WireColor color
WireLetter letter
System.Int32 position
IWireAction action

Properties

| Improve this Doc View Source

Action

The action that this wire performs when mended, cut or puled. This also determines the status lights that this wire adds.

Declaration
public IWireAction Action { get; set; }
Property Value
Type Description
IWireAction
| Improve this Doc View Source

Color

The color of the wire.

Declaration
public WireColor Color { get; }
Property Value
Type Description
WireColor
| Improve this Doc View Source

Id

Used in client-server communication to identify a wire without telling the client what the wire does.

Declaration
public int Id { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

IsCut

Whether the wire is cut.

Declaration
public bool IsCut { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Letter

The greek letter shown below the wire.

Declaration
public WireLetter Letter { get; }
Property Value
Type Description
WireLetter
| Improve this Doc View Source

OriginalPosition

The original position of this wire in the prototype.

Declaration
public int OriginalPosition { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Owner

The entity that registered the wire.

Declaration
public EntityUid Owner { get; }
Property Value
Type Description
EntityUid
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾