* started work * some more work, ui working (somewhat) * stuff * reorganization * some more reorg * conveyors * conveyors working * finalized (dis)connection added linkattempt added feedback text work on conveyors * removed command add rangecheck * fixed inrange check * handling * ui no longer kanser, ship it * adresses reviews * reformats file * reformats file Co-authored-by: Paul <ritter.paul1+git@googlemail.com>
24 lines
694 B
C#
24 lines
694 B
C#
using Content.Server.MachineLinking.Components;
|
|
using Content.Server.MachineLinking.Events;
|
|
using Content.Shared.Interaction;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Server.MachineLinking.System
|
|
{
|
|
public class SignalButtonSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<SignalButtonComponent, InteractHandEvent>(OnInteractHand);
|
|
}
|
|
|
|
private void OnInteractHand(EntityUid uid, SignalButtonComponent component, InteractHandEvent args)
|
|
{
|
|
RaiseLocalEvent(uid, new InvokePortEvent("pressed"), false);
|
|
args.Handled = true;
|
|
}
|
|
}
|
|
}
|