Playvoi/Assets/ShiroginSDK/Runtime/Services/Interfaces/IDataService.cs
2025-10-30 22:48:16 +03:00

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;
}
}