Fix 3000 errors
This commit is contained in:
@@ -63,7 +63,7 @@ namespace Content.Server.Radio.Components
|
||||
_chatManager.EntitySay(Owner, message);
|
||||
}
|
||||
|
||||
public bool Use(IEntity user)
|
||||
public bool Use(EntityUiduser)
|
||||
{
|
||||
RadioOn = !RadioOn;
|
||||
|
||||
@@ -79,13 +79,13 @@ namespace Content.Server.Radio.Components
|
||||
return Use(eventArgs.User);
|
||||
}
|
||||
|
||||
public bool CanListen(string message, IEntity source)
|
||||
public bool CanListen(string message, EntityUidsource)
|
||||
{
|
||||
return RadioOn &&
|
||||
Owner.InRangeUnobstructed(IoCManager.Resolve<IEntityManager>().GetComponent<TransformComponent>(source).Coordinates, range: ListenRange);
|
||||
}
|
||||
|
||||
public void Receive(string message, int channel, IEntity speaker)
|
||||
public void Receive(string message, int channel, EntityUidspeaker)
|
||||
{
|
||||
if (RadioOn)
|
||||
{
|
||||
@@ -93,12 +93,12 @@ namespace Content.Server.Radio.Components
|
||||
}
|
||||
}
|
||||
|
||||
public void Listen(string message, IEntity speaker)
|
||||
public void Listen(string message, EntityUidspeaker)
|
||||
{
|
||||
Broadcast(message, speaker);
|
||||
}
|
||||
|
||||
public void Broadcast(string message, IEntity speaker)
|
||||
public void Broadcast(string message, EntityUidspeaker)
|
||||
{
|
||||
_radioSystem.SpreadMessage(this, speaker, message, BroadcastFrequency);
|
||||
}
|
||||
|
||||
@@ -10,8 +10,8 @@ namespace Content.Server.Radio.Components
|
||||
{
|
||||
int ListenRange { get; }
|
||||
|
||||
bool CanListen(string message, IEntity source);
|
||||
bool CanListen(string message, EntityUidsource);
|
||||
|
||||
void Listen(string message, IEntity speaker);
|
||||
void Listen(string message, EntityUidspeaker);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Radio.Components
|
||||
{
|
||||
@@ -7,8 +6,8 @@ namespace Content.Server.Radio.Components
|
||||
{
|
||||
IReadOnlyList<int> Channels { get; }
|
||||
|
||||
void Receive(string message, int channel, IEntity speaker);
|
||||
void Receive(string message, int channel, EntityUidspeaker);
|
||||
|
||||
void Broadcast(string message, IEntity speaker);
|
||||
void Broadcast(string message, EntityUidspeaker);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Radio.EntitySystems
|
||||
[UsedImplicitly]
|
||||
public class ListeningSystem : EntitySystem
|
||||
{
|
||||
public void PingListeners(IEntity source, string message)
|
||||
public void PingListeners(EntityUid source, string message)
|
||||
{
|
||||
foreach (var listener in EntityManager.EntityQuery<IListen>(true))
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Content.Server.Radio.EntitySystems
|
||||
{
|
||||
private readonly List<string> _messages = new();
|
||||
|
||||
public void SpreadMessage(IRadio source, IEntity speaker, string message, int channel)
|
||||
public void SpreadMessage(IRadio source, EntityUid speaker, string message, int channel)
|
||||
{
|
||||
if (_messages.Contains(message)) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user