新增 FlowScope Git 包雏形
This commit is contained in:
13
Packages/com.flowscope.gamecore/Runtime/Save/ISaveService.cs
Normal file
13
Packages/com.flowscope.gamecore/Runtime/Save/ISaveService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FlowScope.Save
|
||||
{
|
||||
public interface ISaveService
|
||||
{
|
||||
Task SaveAsync<T>(string key, T data, CancellationToken cancellationToken);
|
||||
Task<T> LoadAsync<T>(string key, T defaultValue, CancellationToken cancellationToken);
|
||||
void Delete(string key);
|
||||
bool Exists(string key);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user