Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
Silence IDE0305.
This commit is contained in:
committed by
Pavel Penev
parent
0740991c12
commit
79454d8fd2
@@ -28,10 +28,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly bool ChangingWindLevel = true;
|
||||
|
||||
[Desc("The levels of wind intensity (particles x-axis movement in px/tick).")]
|
||||
public readonly int[] WindLevels = { -12, -7, -5, 0, 5, 7, 12 };
|
||||
public readonly int[] WindLevels = [-12, -7, -5, 0, 5, 7, 12];
|
||||
|
||||
[Desc("Works only if ChangingWindLevel is enabled. Min. and max. ticks needed to change the WindLevel.")]
|
||||
public readonly int[] WindTick = { 150, 550 };
|
||||
public readonly int[] WindTick = [150, 550];
|
||||
|
||||
[Desc("Hard or soft fading between the WindLevels.")]
|
||||
public readonly bool InstantWindChanges = false;
|
||||
@@ -40,31 +40,31 @@ namespace OpenRA.Mods.Common.Traits
|
||||
public readonly bool UseSquares = true;
|
||||
|
||||
[Desc("Size / width of the particle in px.")]
|
||||
public readonly int[] ParticleSize = { 1, 3 };
|
||||
public readonly int[] ParticleSize = [1, 3];
|
||||
|
||||
[Desc("Scatters falling direction on the x-axis. Scatter min. and max. value in px/tick.")]
|
||||
public readonly int[] ScatterDirection = { -1, 1 };
|
||||
public readonly int[] ScatterDirection = [-1, 1];
|
||||
|
||||
[Desc("Min. and max. speed at which particles fall in px/tick.")]
|
||||
public readonly float[] Gravity = { 2.5f, 5f };
|
||||
public readonly float[] Gravity = [2.5f, 5f];
|
||||
|
||||
[Desc("The current offset value for the swing movement. SwingOffset min. and max. value in px/tick.")]
|
||||
public readonly float[] SwingOffset = { 2.5f, 3.5f };
|
||||
public readonly float[] SwingOffset = [2.5f, 3.5f];
|
||||
|
||||
[Desc("The value that particles swing to the side each update. SwingSpeed min. and max. value in px/tick.")]
|
||||
public readonly float[] SwingSpeed = { 0.0025f, 0.06f };
|
||||
public readonly float[] SwingSpeed = [0.0025f, 0.06f];
|
||||
|
||||
[Desc("The value range that can be swung to the left or right. SwingAmplitude min. and max. value in px/tick.")]
|
||||
public readonly float[] SwingAmplitude = { 1.0f, 1.5f };
|
||||
public readonly float[] SwingAmplitude = [1.0f, 1.5f];
|
||||
|
||||
[Desc("The randomly selected rgb(a) hex colors for the particles. Use this order: rrggbb[aa], rrggbb[aa], ...")]
|
||||
public readonly Color[] ParticleColors =
|
||||
{
|
||||
[
|
||||
Color.FromArgb(236, 236, 236),
|
||||
Color.FromArgb(228, 228, 228),
|
||||
Color.FromArgb(208, 208, 208),
|
||||
Color.FromArgb(188, 188, 188)
|
||||
};
|
||||
];
|
||||
|
||||
[Desc("Works only with line enabled and can be used to fade out the tail of the line like a contrail.")]
|
||||
public readonly byte LineTailAlphaValue = 200;
|
||||
|
||||
Reference in New Issue
Block a user