Refactors machine linking to use generics (#2462)

Co-authored-by: Paul <ritter.paul1+git@googlemail.com>
This commit is contained in:
Paul Ritter
2020-10-30 19:46:19 +01:00
committed by GitHub
parent 95590833ce
commit f36cba8e21
7 changed files with 31 additions and 35 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Interfaces;
using Content.Server.GameObjects.Components.MachineLinking.Signals;
using Content.Shared.Interfaces;
using Content.Shared.Interfaces.GameObjects.Components;
using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
@@ -29,7 +30,7 @@ namespace Content.Server.GameObjects.Components.MachineLinking
return;
}
if (transmitter.TransmitSignal(user, SignalState.Toggle))
if (transmitter.TransmitSignal(user, new ToggleSignal()))
{
// Since the button doesn't have an animation, I'm going to use a popup message
Owner.PopupMessage(user, Loc.GetString("Click."));