Disable warnings that would be refactored anyway (#5047)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user