Merge remote-tracking branch 'Zumorica/2021-12-03-remove-IEntity-komm-süsser-todd' into 2021-12-03-remove-IEntity-komm-süsser-todd
# Conflicts: # Content.Server/DeviceNetwork/Systems/WiredNetworkSystem.cs # Content.Server/Hands/Systems/HandsSystem.cs # Content.Server/Radio/Components/IRadio.cs # Content.Server/UserInterface/ActivatableUISystem.cs
This commit is contained in:
@@ -79,13 +79,13 @@ namespace Content.Server.Radio.Components
|
||||
return Use(eventArgs.User);
|
||||
}
|
||||
|
||||
public bool CanListen(string message, EntityUidsource)
|
||||
public bool CanListen(string message, EntityUid source)
|
||||
{
|
||||
return RadioOn &&
|
||||
Owner.InRangeUnobstructed(IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(source).Coordinates, range: ListenRange);
|
||||
}
|
||||
|
||||
public void Receive(string message, int channel, EntityUidspeaker)
|
||||
public void Receive(string message, int channel, EntityUid speaker)
|
||||
{
|
||||
if (RadioOn)
|
||||
{
|
||||
@@ -93,12 +93,12 @@ namespace Content.Server.Radio.Components
|
||||
}
|
||||
}
|
||||
|
||||
public void Listen(string message, EntityUidspeaker)
|
||||
public void Listen(string message, EntityUid speaker)
|
||||
{
|
||||
Broadcast(message, speaker);
|
||||
}
|
||||
|
||||
public void Broadcast(string message, EntityUidspeaker)
|
||||
public void Broadcast(string message, EntityUid speaker)
|
||||
{
|
||||
_radioSystem.SpreadMessage(this, speaker, message, BroadcastFrequency);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Radio.Components
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.GameObjects;
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Radio.Components
|
||||
|
||||
Reference in New Issue
Block a user