[Add] UI, menu, pause and timer

This commit is contained in:
2026-06-06 22:03:20 +07:00
parent 1483964eaf
commit f4ecf8b6f9
23 changed files with 2440 additions and 11 deletions
@@ -0,0 +1,33 @@
using System;
namespace Minesweeper.Core
{
public sealed class GamePauseService : IGamePauseService
{
public event Action<bool> PauseChanged;
public bool IsPaused { get; private set; }
public void Pause()
{
if (IsPaused)
{
return;
}
IsPaused = true;
PauseChanged?.Invoke(IsPaused);
}
public void Resume()
{
if (!IsPaused)
{
return;
}
IsPaused = false;
PauseChanged?.Invoke(IsPaused);
}
}
}