Fix CA1012

This commit is contained in:
RoosterDragon
2023-03-12 11:16:15 +00:00
committed by abcdefg30
parent 19fa03435b
commit f336a956cf
19 changed files with 29 additions and 22 deletions

View File

@@ -24,10 +24,10 @@ namespace OpenRA
protected readonly T[] Entries;
protected readonly Rectangle Bounds;
public CellLayerBase(Map map)
protected CellLayerBase(Map map)
: this(map.Grid.Type, new Size(map.MapSize.X, map.MapSize.Y)) { }
public CellLayerBase(MapGridType gridType, Size size)
protected CellLayerBase(MapGridType gridType, Size size)
{
Size = size;
Bounds = new Rectangle(0, 0, Size.Width, Size.Height);