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

@@ -87,7 +87,7 @@ namespace Content.Server.GameObjects.Components.MachineLinking
}
}
public bool TransmitSignal(IEntity user, SignalState state)
public bool TransmitSignal<T>(IEntity user, T signal)
{
if (_receivers.Count == 0)
{
@@ -102,7 +102,7 @@ namespace Content.Server.GameObjects.Components.MachineLinking
continue;
}
receiver.DistributeSignal(state);
receiver.DistributeSignal(signal);
}
return true;
}