Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.

Silence IDE0305.
This commit is contained in:
RoosterDragon
2025-03-03 17:29:45 +00:00
committed by Pavel Penev
parent 0740991c12
commit 79454d8fd2
559 changed files with 1661 additions and 1751 deletions

View File

@@ -30,12 +30,12 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Requirements for accepting a plug type.",
"Key is the plug type that the requirements applies to.",
"Value is the condition expression defining the requirements to place the plug.")]
public readonly Dictionary<string, BooleanExpression> Requirements = new();
public readonly Dictionary<string, BooleanExpression> Requirements = [];
[Desc("Options to display in the map editor.",
"Key is the plug type that the requirements applies to.",
"Value is the label that is displayed in the actor editor dropdown.")]
public readonly Dictionary<string, string> EditorOptions = new();
public readonly Dictionary<string, string> EditorOptions = [];
[Desc("Label to use for an empty plug socket.")]
public readonly string EmptyOption = "Empty";
@@ -95,7 +95,7 @@ namespace OpenRA.Mods.Common.Traits
if (info.Requirements.Count > 0)
{
plugTypesAvailability = new Dictionary<string, bool>();
plugTypesAvailability = [];
foreach (var plug in info.Requirements)
plugTypesAvailability[plug.Key] = true;
}