Fix IDE0090
This commit is contained in:
committed by
Pavel Penev
parent
164abfdae1
commit
8a285f9b19
@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
"ResourceType.PipColor has been removed and resource pip colours are now defined\n" +
|
||||
"in WithHarvesterPipsDecoration.ResourceSequences.";
|
||||
|
||||
static readonly Dictionary<string, string> PipReplacements = new Dictionary<string, string>
|
||||
static readonly Dictionary<string, string> PipReplacements = new()
|
||||
{
|
||||
{ "transparent", "pip-empty" },
|
||||
{ "green", "pip-green" },
|
||||
@@ -41,11 +41,11 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
};
|
||||
|
||||
bool customPips;
|
||||
readonly List<string> locations = new List<string>();
|
||||
readonly List<string> cargoPipLocations = new List<string>();
|
||||
readonly HashSet<string> cargoCustomPips = new HashSet<string>();
|
||||
readonly List<string> harvesterPipLocations = new List<string>();
|
||||
readonly Dictionary<string, string> harvesterCustomPips = new Dictionary<string, string>();
|
||||
readonly List<string> locations = new();
|
||||
readonly List<string> cargoPipLocations = new();
|
||||
readonly HashSet<string> cargoCustomPips = new();
|
||||
readonly List<string> harvesterPipLocations = new();
|
||||
readonly Dictionary<string, string> harvesterCustomPips = new();
|
||||
|
||||
public override IEnumerable<string> AfterUpdate(ModData modData)
|
||||
{
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
power.AddNode(new MiniYamlNode("Footprint", footprint));
|
||||
}
|
||||
|
||||
readonly List<string> locations = new List<string>();
|
||||
readonly List<string> locations = new();
|
||||
|
||||
public override IEnumerable<string> AfterUpdate(ModData modData)
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
|
||||
public override string Description => "The trait NukePower (via the NukeLaunch projectile that it uses) no longer has built-in palette flashing.";
|
||||
|
||||
readonly List<Tuple<string, string, string>> weaponsToUpdate = new List<Tuple<string, string, string>>();
|
||||
readonly List<Tuple<string, string, string>> weaponsToUpdate = new();
|
||||
|
||||
public override IEnumerable<string> UpdateActorNode(ModData modData, MiniYamlNode actorNode)
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
Right = 8,
|
||||
}
|
||||
|
||||
static readonly Dictionary<LegacyReferencePoints, string> PositionMap = new Dictionary<LegacyReferencePoints, string>()
|
||||
static readonly Dictionary<LegacyReferencePoints, string> PositionMap = new()
|
||||
{
|
||||
{ LegacyReferencePoints.Center, "Center" },
|
||||
{ LegacyReferencePoints.Top, "Top" },
|
||||
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{ LegacyReferencePoints.Bottom | LegacyReferencePoints.Right, "BottomRight" }
|
||||
};
|
||||
|
||||
readonly Dictionary<string, List<string>> locations = new Dictionary<string, List<string>>();
|
||||
readonly Dictionary<string, List<string>> locations = new();
|
||||
|
||||
public override IEnumerable<string> AfterUpdate(ModData modData)
|
||||
{
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
"UseClassicFacingFudge has been replaced with ClassicFacingBodyOrientation trait\n" +
|
||||
"and Classic* variants of *Sequence loaders respectively, both located in Mods.Cnc.";
|
||||
|
||||
readonly List<string> locations = new List<string>();
|
||||
readonly List<string> locations = new();
|
||||
|
||||
public override IEnumerable<string> AfterUpdate(ModData modData)
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
"TurnToDock is removed from the Aircraft trait in favor of letting the Exit trait on the host" +
|
||||
"building determine whether or not turning is required and to what facing the aircraft must turn.";
|
||||
|
||||
readonly List<Tuple<string, string>> turningAircraft = new List<Tuple<string, string>>();
|
||||
readonly List<Tuple<string, string>> turningAircraft = new();
|
||||
|
||||
public override IEnumerable<string> AfterUpdate(ModData modData)
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{
|
||||
class ReplaceFacingAngles : UpdateRule
|
||||
{
|
||||
static readonly Dictionary<string, string[]> TraitFields = new Dictionary<string, string[]>()
|
||||
static readonly Dictionary<string, string[]> TraitFields = new()
|
||||
{
|
||||
{ "Aircraft", new[] { "InitialFacing", "PreviewFacing", "TurnSpeed", "IdleTurnSpeed" } },
|
||||
{ "Mobile", new[] { "InitialFacing", "PreviewFacing", "TurnSpeed" } },
|
||||
@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
|
||||
{ "AttackTesla", new[] { "FacingTolerance" } },
|
||||
};
|
||||
|
||||
static readonly Dictionary<string, string[]> ProjectileFields = new Dictionary<string, string[]>()
|
||||
static readonly Dictionary<string, string[]> ProjectileFields = new()
|
||||
{
|
||||
{ "Missile", new[] { "HorizontalRateOfTurn", "VerticalRateOfTurn" } }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user