【a】可视化剧本编辑器 10.StoryEditor
This commit is contained in:
24
Assets/10.StoryEditor/RunTime/Resource/IResource.cs
Normal file
24
Assets/10.StoryEditor/RunTime/Resource/IResource.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Stary.Evo.StoryEditor
|
||||
{
|
||||
public interface IResource
|
||||
{
|
||||
/// <summary>
|
||||
/// 加载资源
|
||||
/// Json => 资源
|
||||
/// </summary>
|
||||
/// <param name="pathData">资源路径</param>
|
||||
/// <typeparam name="T">资源类型</typeparam>
|
||||
UniTask<T> Load<T>(ResourcePathData pathData) where T : Object;
|
||||
|
||||
/// <summary>
|
||||
/// 保存资源
|
||||
/// 资源 => Json
|
||||
/// </summary>
|
||||
/// <param name="asset">资源</param>
|
||||
/// <param name="packageID">包体ID</param>
|
||||
UniTask<ResourcePathData> Save<T>(T asset, string packageID = null) where T : Object;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user