Fix IDE0090

This commit is contained in:
RoosterDragon
2023-04-05 19:34:12 +01:00
committed by Pavel Penev
parent 164abfdae1
commit 8a285f9b19
385 changed files with 790 additions and 794 deletions

View File

@@ -22,16 +22,16 @@ namespace OpenRA.Mods.Cnc.Traits
public class TSTiberiumRendererInfo : ResourceRendererInfo
{
[Desc("Sequences to use for ramp type 1.", "Dictionary of [resource type]: [list of sequences].")]
public readonly Dictionary<string, string[]> Ramp1Sequences = new Dictionary<string, string[]>();
public readonly Dictionary<string, string[]> Ramp1Sequences = new();
[Desc("Sequences to use for ramp type 2.", "Dictionary of [resource type]: [list of sequences].")]
public readonly Dictionary<string, string[]> Ramp2Sequences = new Dictionary<string, string[]>();
public readonly Dictionary<string, string[]> Ramp2Sequences = new();
[Desc("Sequences to use for ramp type 3.", "Dictionary of [resource type]: [list of sequences].")]
public readonly Dictionary<string, string[]> Ramp3Sequences = new Dictionary<string, string[]>();
public readonly Dictionary<string, string[]> Ramp3Sequences = new();
[Desc("Sequences to use for ramp type 4.", "Dictionary of [resource type]: [list of sequences].")]
public readonly Dictionary<string, string[]> Ramp4Sequences = new Dictionary<string, string[]>();
public readonly Dictionary<string, string[]> Ramp4Sequences = new();
public override object Create(ActorInitializer init) { return new TSTiberiumRenderer(init.Self, this); }
}
@@ -40,10 +40,10 @@ namespace OpenRA.Mods.Cnc.Traits
{
readonly TSTiberiumRendererInfo info;
readonly World world;
readonly Dictionary<string, Dictionary<string, ISpriteSequence>> ramp1Variants = new Dictionary<string, Dictionary<string, ISpriteSequence>>();
readonly Dictionary<string, Dictionary<string, ISpriteSequence>> ramp2Variants = new Dictionary<string, Dictionary<string, ISpriteSequence>>();
readonly Dictionary<string, Dictionary<string, ISpriteSequence>> ramp3Variants = new Dictionary<string, Dictionary<string, ISpriteSequence>>();
readonly Dictionary<string, Dictionary<string, ISpriteSequence>> ramp4Variants = new Dictionary<string, Dictionary<string, ISpriteSequence>>();
readonly Dictionary<string, Dictionary<string, ISpriteSequence>> ramp1Variants = new();
readonly Dictionary<string, Dictionary<string, ISpriteSequence>> ramp2Variants = new();
readonly Dictionary<string, Dictionary<string, ISpriteSequence>> ramp3Variants = new();
readonly Dictionary<string, Dictionary<string, ISpriteSequence>> ramp4Variants = new();
public TSTiberiumRenderer(Actor self, TSTiberiumRendererInfo info)
: base(self, info)