Fix IDE0090
This commit is contained in:
committed by
Pavel Penev
parent
164abfdae1
commit
8a285f9b19
@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Cnc.Graphics
|
||||
public class ClassicSpriteSequence : DefaultSpriteSequence
|
||||
{
|
||||
[Desc("Incorporate a compensation factor for the rotational distortion present in the first-generation Westwood games.")]
|
||||
static readonly SpriteSequenceField<bool> UseClassicFacings = new SpriteSequenceField<bool>(nameof(UseClassicFacings), false);
|
||||
static readonly SpriteSequenceField<bool> UseClassicFacings = new(nameof(UseClassicFacings), false);
|
||||
readonly bool useClassicFacings;
|
||||
|
||||
public ClassicSpriteSequence(SpriteCache cache, ISpriteSequenceLoader loader, string image, string sequence, MiniYaml data, MiniYaml defaults)
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace OpenRA.Mods.Cnc.Graphics
|
||||
public class ClassicTilesetSpecificSpriteSequence : ClassicSpriteSequence
|
||||
{
|
||||
[Desc("Dictionary of <tileset name>: filename to override the Filename key.")]
|
||||
static readonly SpriteSequenceField<Dictionary<string, string>> TilesetFilenames = new SpriteSequenceField<Dictionary<string, string>>(nameof(TilesetFilenames), null);
|
||||
static readonly SpriteSequenceField<Dictionary<string, string>> TilesetFilenames = new(nameof(TilesetFilenames), null);
|
||||
|
||||
public ClassicTilesetSpecificSpriteSequence(SpriteCache cache, ISpriteSequenceLoader loader, string image, string sequence, MiniYaml data, MiniYaml defaults)
|
||||
: base(cache, loader, image, sequence, data, defaults) { }
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Cnc.Graphics
|
||||
{
|
||||
static readonly float[] ChannelSelect = { 0.75f, 0.25f, -0.25f, -0.75f };
|
||||
|
||||
readonly List<Vertex[]> vertices = new List<Vertex[]>();
|
||||
readonly List<Vertex[]> vertices = new();
|
||||
readonly Cache<(string, string), Voxel> voxels;
|
||||
readonly IReadOnlyFileSystem fileSystem;
|
||||
IVertexBuffer<Vertex> vertexBuffer;
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace OpenRA.Mods.Cnc.Graphics
|
||||
public class VoxelModelCache : IModelCache
|
||||
{
|
||||
readonly VoxelLoader loader;
|
||||
readonly Dictionary<string, Dictionary<string, IModel>> models = new Dictionary<string, Dictionary<string, IModel>>();
|
||||
readonly Dictionary<string, Dictionary<string, IModel>> models = new();
|
||||
|
||||
public VoxelModelCache(IReadOnlyFileSystem fileSystem)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user