Create All Needed Scripts
This commit is contained in:
19
Assets/Scripts/Services/Interfaces/IGameBoardService.cs
Normal file
19
Assets/Scripts/Services/Interfaces/IGameBoardService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c63053069b7e4791a82ee7dd04eae86c
|
||||
timeCreated: 1765662196
|
||||
9
Assets/Scripts/Services/Interfaces/IInputService.cs
Normal file
9
Assets/Scripts/Services/Interfaces/IInputService.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Services.Interfaces {
|
||||
public interface IInputService {
|
||||
event Action<Vector2> OnPointerDown;
|
||||
event Action<Vector2> OnPointerUp;
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Services/Interfaces/IInputService.cs.meta
Normal file
3
Assets/Scripts/Services/Interfaces/IInputService.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 73b706bb5eea4fdf9b1f4563aef578cd
|
||||
timeCreated: 1765632542
|
||||
13
Assets/Scripts/Services/Interfaces/IMatchService.cs
Normal file
13
Assets/Scripts/Services/Interfaces/IMatchService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Services/Interfaces/IMatchService.cs.meta
Normal file
3
Assets/Scripts/Services/Interfaces/IMatchService.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 513ff6c9b21549f088abcb4c83143771
|
||||
timeCreated: 1765656570
|
||||
5
Assets/Scripts/Services/Interfaces/IScoreService.cs
Normal file
5
Assets/Scripts/Services/Interfaces/IScoreService.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
namespace Services.Interfaces {
|
||||
public interface IScoreService {
|
||||
void ScoreCheck(int value);
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Services/Interfaces/IScoreService.cs.meta
Normal file
3
Assets/Scripts/Services/Interfaces/IScoreService.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8d61c21960f14353b3f431434d3b4de2
|
||||
timeCreated: 1765674663
|
||||
Reference in New Issue
Block a user