15 lines
459 B
C#
15 lines
459 B
C#
using Cysharp.Threading.Tasks;
|
|
|
|
namespace BriarQueen.Framework.Services.Puzzles.Base
|
|
{
|
|
public interface IPuzzleStateful
|
|
{
|
|
/// <summary>If true, manager can mark the puzzle completed (and optionally clear state).</summary>
|
|
bool IsCompleted { get; }
|
|
|
|
UniTask<byte[]> CaptureState();
|
|
|
|
/// <summary>Restore the puzzle from a previously captured serialized blob.</summary>
|
|
UniTask RestoreState(byte[] state);
|
|
}
|
|
} |