Fixed Bomb Spawning
This commit is contained in:
@@ -38,7 +38,9 @@ namespace Services.Interfaces
|
||||
/// <param name="bombCandidates">
|
||||
/// Possible bombs.
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
/// <returns>
|
||||
/// List of Bombs.
|
||||
/// </returns>
|
||||
UniTask<List<Vector2Int>> GetInitialBombs(List<Vector2Int> protectedPositions, HashSet<Vector2Int> bombCandidates);
|
||||
|
||||
/// <summary>
|
||||
@@ -50,13 +52,8 @@ namespace Services.Interfaces
|
||||
/// <param name="destroyAtAsync">
|
||||
/// Destroy function reference.
|
||||
/// </param>
|
||||
/// <param name="gameBoard">
|
||||
/// Gameboard reference.
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
UniTask DetonateChainAsync(
|
||||
IReadOnlyList<Vector2Int> initialBombs,
|
||||
Func<Vector2Int, UniTask> destroyAtAsync,
|
||||
IGameBoard gameBoard);
|
||||
Func<Vector2Int, UniTask> destroyAtAsync);
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,9 @@ namespace Services.Interfaces {
|
||||
/// <param name="protectedPositions">
|
||||
/// Protected positions, bombs that we don't want to destroy.
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
/// <returns>
|
||||
/// HashSet of unprotected matches.
|
||||
/// </returns>
|
||||
UniTask<HashSet<Vector2Int>> GetMatchPositionsAsync(List<Vector2Int> protectedPositions);
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user