Performance improvements
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Services.Interfaces
|
||||
|
||||
void SetLastSwap(Vector2Int from, Vector2Int to);
|
||||
|
||||
void DetectBombSpawnFromLastSwap(List<Gem> currentMatches);
|
||||
void DetectBombSpawnFromLastSwap(HashSet<Gem> currentMatches);
|
||||
List<Vector2Int> ApplyPendingBombSpawns(Action<Vector2Int, GemType, bool> spawnGem);
|
||||
UniTask<List<Vector2Int>> GetInitialBombs(List<Vector2Int> protectedPositions, List<Vector2Int> bombCandidates);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ using Structs;
|
||||
|
||||
namespace Services.Interfaces {
|
||||
public interface IMatchService {
|
||||
List<Gem> CurrentMatches { get; }
|
||||
HashSet<Gem> CurrentMatches { get; }
|
||||
UniTask<List<Vector2Int>> GetMatchPositionsAsync(List<Vector2Int> protectedPositions);
|
||||
bool MatchesAt(Vector2Int positionToCheck, GemType gemTypeToCheck);
|
||||
void FindAllMatches();
|
||||
|
||||
Reference in New Issue
Block a user