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 SourceWire(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 SourceAction
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 |
Color
The color of the wire.
Declaration
public WireColor Color { get; }
Property Value
Type | Description |
---|---|
WireColor |
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 |
IsCut
Whether the wire is cut.
Declaration
public bool IsCut { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Letter
The greek letter shown below the wire.
Declaration
public WireLetter Letter { get; }
Property Value
Type | Description |
---|---|
WireLetter |
OriginalPosition
The original position of this wire in the prototype.
Declaration
public int OriginalPosition { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Owner
The entity that registered the wire.
Declaration
public EntityUid Owner { get; }
Property Value
Type | Description |
---|---|
EntityUid |