Disable warnings that would be refactored anyway (#5047)

This commit is contained in:
Visne
2021-10-27 18:10:40 +02:00
committed by GitHub
parent bd4ab219e3
commit c67160ae19
93 changed files with 302 additions and 5 deletions

View File

@@ -21,7 +21,9 @@ namespace Content.Server.Power.Components
/// so that it can receive power from a <see cref="IApcNet"/>.
/// </summary>
[RegisterComponent]
#pragma warning disable 618
public class ApcPowerReceiverComponent : Component, IExamine
#pragma warning restore 618
{
public override string Name => "ApcPowerReceiver";
@@ -84,7 +86,9 @@ namespace Content.Server.Power.Components
private void OnNewPowerState()
{
#pragma warning disable 618
SendMessage(new PowerChangedMessage(Powered));
#pragma warning restore 618
Owner.EntityManager.EventBus.RaiseLocalEvent(Owner.Uid, new PowerChangedEvent(Powered));
if (Owner.TryGetComponent<AppearanceComponent>(out var appearance))
@@ -104,7 +108,9 @@ namespace Content.Server.Power.Components
}
}
#pragma warning disable 618
public class PowerChangedMessage : ComponentMessage
#pragma warning restore 618
{
public readonly bool Powered;