Literally Murder IExamine (#7352)

This commit is contained in:
Rane
2022-04-08 17:17:25 -04:00
committed by GitHub
parent 427f7378c3
commit 7900abb888
27 changed files with 372 additions and 469 deletions

View File

@@ -2,16 +2,8 @@ using System.Collections.Generic;
using Content.Server.Chat;
using Content.Server.Chat.Managers;
using Content.Server.Radio.EntitySystems;
using Content.Shared.Examine;
using Content.Shared.Interaction;
using Content.Shared.Interaction.Helpers;
using Content.Shared.Popups;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.Utility;
using Robust.Shared.ViewVariables;
namespace Content.Server.Radio.Components
{
@@ -21,7 +13,7 @@ namespace Content.Server.Radio.Components
[ComponentReference(typeof(IListen))]
[ComponentReference(typeof(IActivate))]
#pragma warning disable 618
public sealed class HandheldRadioComponent : Component, IListen, IRadio, IActivate, IExamine
public sealed class HandheldRadioComponent : Component, IListen, IRadio, IActivate
#pragma warning restore 618
{
private ChatSystem _chatSystem = default!;
@@ -33,7 +25,7 @@ namespace Content.Server.Radio.Components
[ViewVariables(VVAccess.ReadWrite)]
[DataField("broadcastChannel")]
private int BroadcastFrequency { get; set; } = 1459;
public int BroadcastFrequency { get; set; } = 1459;
[ViewVariables(VVAccess.ReadWrite)] [DataField("listenRange")] public int ListenRange { get; private set; } = 7;
@@ -104,10 +96,5 @@ namespace Content.Server.Radio.Components
{
Use(eventArgs.User);
}
public void Examine(FormattedMessage message, bool inDetailsRange)
{
message.AddText(Loc.GetString("handheld-radio-component-on-examine",("frequency", BroadcastFrequency)));
}
}
}