Fix style errors

This commit is contained in:
RoosterDragon
2021-07-22 20:25:31 +01:00
committed by teinarss
parent c958bf9680
commit 2f955e01f5
3 changed files with 3 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ namespace OpenRA.Mods.Common.Scripting
var squad = new List<Actor>();
var func = actionFunc.CopyReference() as LuaFunction;
Action<Actor, Actor> productionHandler = (_, __) => { };
Action<Actor, Actor> productionHandler = (a, b) => { };
productionHandler = (factory, unit) =>
{
if (player != factory.Owner)

View File

@@ -68,7 +68,7 @@ namespace OpenRA.Mods.D2k.Activities
{
var insurance = targetClose.Owner.PlayerActor.TraitOrDefault<HarvesterInsurance>();
if (insurance != null)
self.World.AddFrameEndTask(__ => insurance.TryActivate());
self.World.AddFrameEndTask(w => insurance.TryActivate());
}
});
}

View File

@@ -19,6 +19,7 @@ using SDL2;
namespace OpenRA.Platforms.Default
{
#pragma warning disable IDE1006 // Naming Styles
[SuppressMessage("Microsoft.StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter",
Justification = "C-style naming is kept for consistency with the underlying native API.")]
[SuppressMessage("Microsoft.StyleCop.CSharp.NamingRules", "SA1310:FieldNamesMustNotContainUnderscore",