Files
FlowScope/Packages/com.flowscope.gamecore/Runtime/Resources/IResourceService.cs
2026-06-04 14:54:49 +08:00

22 lines
492 B
C#

using System.Threading;
using System.Threading.Tasks;
namespace FlowScope.Resources
{
public interface IResourceService
{
Task<IResourceHandle<T>> LoadAsync<T>(
string key,
CancellationToken cancellationToken)
where T : class;
IResourceGroup CreateGroup();
}
public interface ICompletedResourceService
{
bool TryLoadCompleted<T>(string key, out IResourceHandle<T> handle)
where T : class;
}
}