Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
Silence IDE0305.
This commit is contained in:
committed by
Pavel Penev
parent
0740991c12
commit
79454d8fd2
@@ -24,10 +24,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[Desc("Actor types that are considered harvesters. If harvester count drops below RefineryTypes count, a new harvester is built.",
|
||||
"Leave empty to disable harvester replacement. Currently only needed by harvester replacement system.")]
|
||||
public readonly HashSet<string> HarvesterTypes = new();
|
||||
public readonly HashSet<string> HarvesterTypes = [];
|
||||
|
||||
[Desc("Actor types that are counted as refineries. Currently only needed by harvester replacement system.")]
|
||||
public readonly HashSet<string> RefineryTypes = new();
|
||||
public readonly HashSet<string> RefineryTypes = [];
|
||||
|
||||
[Desc("Interval (in ticks) between giving out orders to idle harvesters.")]
|
||||
public readonly int ScanForIdleHarvestersInterval = 50;
|
||||
@@ -68,11 +68,11 @@ namespace OpenRA.Mods.Common.Traits
|
||||
readonly World world;
|
||||
readonly Player player;
|
||||
readonly Func<Actor, bool> unitCannotBeOrdered;
|
||||
readonly Dictionary<Actor, HarvesterTraitWrapper> harvesters = new();
|
||||
readonly Stack<HarvesterTraitWrapper> harvestersNeedingOrders = new();
|
||||
readonly Dictionary<Actor, HarvesterTraitWrapper> harvesters = [];
|
||||
readonly Stack<HarvesterTraitWrapper> harvestersNeedingOrders = [];
|
||||
readonly ActorIndex.OwnerAndNamesAndTrait<BuildingInfo> refineries;
|
||||
readonly ActorIndex.OwnerAndNamesAndTrait<HarvesterInfo> harvestersIndex;
|
||||
readonly Dictionary<CPos, string> resourceTypesByCell = new();
|
||||
readonly Dictionary<CPos, string> resourceTypesByCell = [];
|
||||
|
||||
IResourceLayer resourceLayer;
|
||||
ResourceClaimLayer claimLayer;
|
||||
|
||||
Reference in New Issue
Block a user