16 lines
No EOL
462 B
C#
16 lines
No EOL
462 B
C#
using ShiroginSDK.Runtime.Modules.Data.Scripts;
|
|
|
|
namespace ShiroginSDK.Runtime.Services.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// Provides access to game data classes and centralized persistence.
|
|
/// </summary>
|
|
public interface IDataService
|
|
{
|
|
T Get<T>() where T : BaseData;
|
|
void SaveAll();
|
|
void DeleteAll();
|
|
bool Exists<T>() where T : BaseData;
|
|
string ToJson<T>(bool pretty = true) where T : BaseData;
|
|
}
|
|
} |