Use expression body syntax
This commit is contained in:
@@ -15,7 +15,7 @@ namespace OpenRA
|
||||
{
|
||||
public sealed class ProjectedCellLayer<T> : CellLayerBase<T>
|
||||
{
|
||||
public int MaxIndex { get { return Size.Width * Size.Height; } }
|
||||
public int MaxIndex => Size.Width * Size.Height;
|
||||
|
||||
public ProjectedCellLayer(Map map)
|
||||
: base(map) { }
|
||||
@@ -36,29 +36,17 @@ namespace OpenRA
|
||||
|
||||
public T this[int index]
|
||||
{
|
||||
get
|
||||
{
|
||||
return entries[index];
|
||||
}
|
||||
get => entries[index];
|
||||
|
||||
set
|
||||
{
|
||||
entries[index] = value;
|
||||
}
|
||||
set => entries[index] = value;
|
||||
}
|
||||
|
||||
/// <summary>Gets or sets the layer contents using projected map coordinates.</summary>
|
||||
public T this[PPos uv]
|
||||
{
|
||||
get
|
||||
{
|
||||
return entries[Index(uv)];
|
||||
}
|
||||
get => entries[Index(uv)];
|
||||
|
||||
set
|
||||
{
|
||||
entries[Index(uv)] = value;
|
||||
}
|
||||
set => entries[Index(uv)] = value;
|
||||
}
|
||||
|
||||
public bool Contains(PPos uv)
|
||||
|
||||
Reference in New Issue
Block a user