I was just wondering why in the LevelGrid.cs code, for:
public bool HasAnyUnitOnGridPosition(GridPosition gridPosition)
Why this was made into a method instead of continuing to use the lambda style. ex:
public bool HasAnyUnitOnGridPosition(GridPosition gridPosition)
{
GridObject gridObject = gridSystem.GetGridObject(gridPosition);
return gridObject.HasAnyUnit();
}
vs
public bool HasAnyUnitOnGridPosition(GridPosition gridPosition) => gridSystem.GetGridObject(gridPosition).HasAnyUnit();
The method calls above where this is placed used the lambda method, so I was wondering if there was some other consideration here.