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

@@ -104,6 +104,7 @@ namespace Content.Client.Weapons.Ranged.Barrels.Components
_statusControl?.Update();
}
[Obsolete("Component Messages are deprecated, use Entity Events instead.")]
public override void HandleNetworkMessage(ComponentMessage message, INetChannel channel, ICommonSession? session = null)
{
base.HandleNetworkMessage(message, channel, session);

View File

@@ -33,7 +33,9 @@ namespace Content.Client.Weapons.Ranged
public void SyncFirePos(GridId targetGrid, Vector2 targetPosition)
{
#pragma warning disable 618
SendNetworkMessage(new FirePosComponentMessage(targetGrid, targetPosition));
#pragma warning restore 618
}
}
}