Create All Needed Scripts

This commit is contained in:
2025-12-14 09:23:38 +08:00
parent 980b26dd5e
commit 6fe70bd113
53 changed files with 1988 additions and 195 deletions

View File

@@ -0,0 +1,19 @@
using Cysharp.Threading.Tasks;
using Enums;
using UnityEngine;
using Views;
namespace Services.Interfaces {
public interface IGameBoardService {
void Setup();
void SpawnGem(Vector2Int position, GemView gemPrefab, GemType gemType);
void SetGem(Vector2Int position, Gem gem);
Gem GetGem(Vector2Int position);
void DestroyMatches();
UniTask MoveGemsDown();
UniTask FillBoard();
void RefillBoard();
void CheckMisplacedGems();
void DestroyMatchedGems(Vector2Int position);
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: c63053069b7e4791a82ee7dd04eae86c
timeCreated: 1765662196

View File

@@ -0,0 +1,9 @@
using System;
using UnityEngine;
namespace Services.Interfaces {
public interface IInputService {
event Action<Vector2> OnPointerDown;
event Action<Vector2> OnPointerUp;
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 73b706bb5eea4fdf9b1f4563aef578cd
timeCreated: 1765632542

View File

@@ -0,0 +1,13 @@
using System.Collections.Generic;
using UnityEngine;
using Enums;
namespace Services.Interfaces {
public interface IMatchService {
List<Gem> CurrentMatches { get; }
bool MatchesAt(Vector2Int positionToCheck, GemType gemTypeToCheck);
void FindAllMatches();
void CheckForBombs();
void MarkBombArea(Vector2Int bombPosition, int blastSize);
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 513ff6c9b21549f088abcb4c83143771
timeCreated: 1765656570

View File

@@ -0,0 +1,5 @@
namespace Services.Interfaces {
public interface IScoreService {
void ScoreCheck(int value);
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8d61c21960f14353b3f431434d3b4de2
timeCreated: 1765674663