Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
Silence IDE0305.
This commit is contained in:
committed by
Pavel Penev
parent
0740991c12
commit
79454d8fd2
@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
|
||||
public class MapPreviewWidget : Widget
|
||||
{
|
||||
static readonly int[] NoDisabledSpawnPoints = Array.Empty<int>();
|
||||
static readonly int[] NoDisabledSpawnPoints = [];
|
||||
|
||||
public readonly bool IgnoreMouseInput = false;
|
||||
public readonly bool ShowSpawnPoints = true;
|
||||
@@ -72,7 +72,7 @@ namespace OpenRA.Mods.Common.Widgets
|
||||
readonly int2 spawnLabelOffset;
|
||||
|
||||
public Func<MapPreview> Preview = () => null;
|
||||
public Func<Dictionary<int, SpawnOccupant>> SpawnOccupants = () => new Dictionary<int, SpawnOccupant>();
|
||||
public Func<Dictionary<int, SpawnOccupant>> SpawnOccupants = () => [];
|
||||
public Func<IEnumerable<int>> DisabledSpawnPoints = () => NoDisabledSpawnPoints;
|
||||
public Action<MouseInput> OnMouseDown = _ => { };
|
||||
public int TooltipSpawnIndex = -1;
|
||||
|
||||
Reference in New Issue
Block a user