Forest_Client/Forest/Assets/PhxhSDK/Phxh/Res/IResLoader.cs

18 lines
607 B
C#

using System;
using Cysharp.Threading.Tasks;
using YooAsset;
namespace PhxhSDK.Res
{
public interface IResLoader
{
UniTask Init();
bool CanLocate<T>(string path) where T : UnityEngine.Object;
RawFileHandle LoadRawFileAsync(string lacation);
UniTask<T> LoadAsync<T>(string path, Action<T> onLoaded) where T : UnityEngine.Object;
void Unload(string path, bool force);
UniTask PostPreload<T>(string path) where T : UnityEngine.Object;
T GetPreLoadResult<T>(string path) where T : UnityEngine.Object;
UniTask WaitAllPreloads();
}
}