using XGame.Framework.Asyncs; namespace XGame.Framework.Asset { /// /// 资源加载的Async /// public interface IAssetAsync : IAsync { ///// ///// 资源路径 ///// //string Path { get; } /// /// 资源名字 /// string AddressableName { get; } /// /// 开始 /// void Start(); /// /// 返回结果 /// /// object GetResult(); } public interface IAssetCacheHandle { /// /// 从AssetManager获取Asset实例 /// /// /// object GetAssetFromCache(string addressableName); /// /// 释放缓存 /// /// void ReleaseAsync(IAsync async); /// /// 设置资源的预加载标记 /// /// /// void SetPreloadTag(string addressableName, bool isPreload); } }