Show / Hide Table of Contents

Class ComponentWireAction<TComponent>

convenience class for wires that depend on the existence of some component to function. Slightly reduces boilerplate.

Inheritance
System.Object
BaseWireAction
ComponentWireAction<TComponent>
AccessWireAction
AirAlarmPanicWire
AtmosMonitorDeviceNetWire
ActivateWireAction
BoltWireAction
BoomWireAction
DelayWireAction
ProceedWireAction
DoorBoltLightWireAction
DoorBoltWireAction
DoorSafetyWireAction
DoorTimingWireAction
CryoPodEjectLockWireAction
ParticleAcceleratorKeyboardWireAction
ParticleAcceleratorLimiterWireAction
ParticleAcceleratorPowerWireAction
ParticleAcceleratorStrengthWireAction
VendingMachineEjectItemWireAction
Implements
IWireAction
Namespace: Content.Server.Wires
Assembly: Content.Server.dll
Syntax
public abstract class ComponentWireAction<TComponent> : BaseWireAction, IWireAction where TComponent : Component
Type Parameters
Name Description
TComponent

Methods

| Improve this Doc View Source

Cut(EntityUid, Wire)

Declaration
public override bool Cut(EntityUid user, Wire wire)
Parameters
Type Name Description
EntityUid user
Wire wire
Returns
Type Description
System.Boolean
Overrides
BaseWireAction.Cut(EntityUid, Wire)
| Improve this Doc View Source

Cut(EntityUid, Wire, TComponent)

Declaration
public abstract bool Cut(EntityUid user, Wire wire, TComponent component)
Parameters
Type Name Description
EntityUid user
Wire wire
TComponent component
Returns
Type Description
System.Boolean
| Improve this Doc View Source

GetLightState(Wire)

Declaration
public override StatusLightState? GetLightState(Wire wire)
Parameters
Type Name Description
Wire wire
Returns
Type Description
System.Nullable<StatusLightState>
Overrides
BaseWireAction.GetLightState(Wire)
| Improve this Doc View Source

GetLightState(Wire, TComponent)

Declaration
public abstract StatusLightState? GetLightState(Wire wire, TComponent component)
Parameters
Type Name Description
Wire wire
TComponent component
Returns
Type Description
System.Nullable<StatusLightState>
| Improve this Doc View Source

Mend(EntityUid, Wire)

Declaration
public override bool Mend(EntityUid user, Wire wire)
Parameters
Type Name Description
EntityUid user
Wire wire
Returns
Type Description
System.Boolean
Overrides
BaseWireAction.Mend(EntityUid, Wire)
| Improve this Doc View Source

Mend(EntityUid, Wire, TComponent)

Declaration
public abstract bool Mend(EntityUid user, Wire wire, TComponent component)
Parameters
Type Name Description
EntityUid user
Wire wire
TComponent component
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Pulse(EntityUid, Wire)

Declaration
public override void Pulse(EntityUid user, Wire wire)
Parameters
Type Name Description
EntityUid user
Wire wire
Overrides
BaseWireAction.Pulse(EntityUid, Wire)
| Improve this Doc View Source

Pulse(EntityUid, Wire, TComponent)

Declaration
public abstract void Pulse(EntityUid user, Wire wire, TComponent component)
Parameters
Type Name Description
EntityUid user
Wire wire
TComponent component

Implements

IWireAction
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾