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

@@ -34,7 +34,9 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
/// All of the ranged weapon components inherit from this to share mechanics like shooting etc.
/// Only difference between them is how they retrieve a projectile to shoot (battery, magazine, etc.)
/// </summary>
#pragma warning disable 618
public abstract class ServerRangedBarrelComponent : SharedRangedBarrelComponent, IUse, IInteractUsing, IExamine, ISerializationHooks
#pragma warning restore 618
{
// There's still some of py01 and PJB's work left over, especially in underlying shooting logic,
// it's just when I re-organised it changed me as the contributor
@@ -359,7 +361,9 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
projectile.Transform.LocalRotation = projectileAngle + MathHelper.PiOver2;
}
#pragma warning disable 618
ammo.SendMessage(this, new BarrelFiredMessage(firedProjectiles));
#pragma warning restore 618
}
/// <summary>
@@ -415,7 +419,9 @@ namespace Content.Server.Weapon.Ranged.Barrels.Components
}
}
#pragma warning disable 618
public class BarrelFiredMessage : ComponentMessage
#pragma warning restore 618
{
public readonly List<IEntity> FiredProjectiles;