Class DeviceLinkSystem
Namespace: Content.Server.DeviceLinking.Systems
Assembly: Content.Server.dll
Syntax
public sealed class DeviceLinkSystem : SharedDeviceLinkSystem
Methods
| Improve this Doc View SourceInitialize()
Declaration
public override void Initialize()
Overrides
| Improve this Doc View SourceInvokePort(EntityUid, String, NetworkPayload, DeviceLinkSourceComponent)
Sends a network payload directed at the sink entity. Just raises a Content.Server.DeviceLinking.Events.SignalReceivedEvent without data if the source or the sink doesn't have a DeviceNetworkComponent
Declaration
public void InvokePort(EntityUid uid, string port, NetworkPayload data = null, DeviceLinkSourceComponent sourceComponent = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | The source uid that invokes the port |
System.String | port | The port to invoke |
NetworkPayload | data | Optional data to send along |
DeviceLinkSourceComponent | sourceComponent |
SendSignal(EntityUid, String, Boolean, DeviceLinkSourceComponent)
Helper function that invokes a port with a high/low binary logic signal.
Declaration
public void SendSignal(EntityUid uid, string port, bool signal, DeviceLinkSourceComponent comp = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
System.String | port | |
System.Boolean | signal | |
DeviceLinkSourceComponent | comp |
Update(Single)
Declaration
public override void Update(float frameTime)
Parameters
Type | Name | Description |
---|---|---|
System.Single | frameTime |