Fix style errors
This commit is contained in:
@@ -151,7 +151,7 @@ namespace OpenRA.Mods.Common.Scripting
|
|||||||
var squad = new List<Actor>();
|
var squad = new List<Actor>();
|
||||||
var func = actionFunc.CopyReference() as LuaFunction;
|
var func = actionFunc.CopyReference() as LuaFunction;
|
||||||
|
|
||||||
Action<Actor, Actor> productionHandler = (_, __) => { };
|
Action<Actor, Actor> productionHandler = (a, b) => { };
|
||||||
productionHandler = (factory, unit) =>
|
productionHandler = (factory, unit) =>
|
||||||
{
|
{
|
||||||
if (player != factory.Owner)
|
if (player != factory.Owner)
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ namespace OpenRA.Mods.D2k.Activities
|
|||||||
{
|
{
|
||||||
var insurance = targetClose.Owner.PlayerActor.TraitOrDefault<HarvesterInsurance>();
|
var insurance = targetClose.Owner.PlayerActor.TraitOrDefault<HarvesterInsurance>();
|
||||||
if (insurance != null)
|
if (insurance != null)
|
||||||
self.World.AddFrameEndTask(__ => insurance.TryActivate());
|
self.World.AddFrameEndTask(w => insurance.TryActivate());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ using SDL2;
|
|||||||
|
|
||||||
namespace OpenRA.Platforms.Default
|
namespace OpenRA.Platforms.Default
|
||||||
{
|
{
|
||||||
|
#pragma warning disable IDE1006 // Naming Styles
|
||||||
[SuppressMessage("Microsoft.StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter",
|
[SuppressMessage("Microsoft.StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter",
|
||||||
Justification = "C-style naming is kept for consistency with the underlying native API.")]
|
Justification = "C-style naming is kept for consistency with the underlying native API.")]
|
||||||
[SuppressMessage("Microsoft.StyleCop.CSharp.NamingRules", "SA1310:FieldNamesMustNotContainUnderscore",
|
[SuppressMessage("Microsoft.StyleCop.CSharp.NamingRules", "SA1310:FieldNamesMustNotContainUnderscore",
|
||||||
|
|||||||
Reference in New Issue
Block a user