【a】可视化剧本编辑器 10.StoryEditor

This commit is contained in:
mzh
2026-01-06 14:24:23 +08:00
parent f055116d4d
commit 2e8accfed8
80 changed files with 3145 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using System;
namespace Stary.Evo.StoryEditor
{
/// <summary>
/// 资源路径数据
/// </summary>
[Serializable]
public struct ResourcePathData
{
/// <summary>
/// 包体ID
/// </summary>
public string packageID;
/// <summary>
/// 资源路径
/// </summary>
public string path;
public ResourcePathData(string packageID, string path)
{
this.packageID = packageID;
this.path = path;
}
public void AddPath(params string[] tail)
{
if(tail == null || tail.Length == 0)
return;
foreach (var t in tail)
{
path = string.IsNullOrEmpty(path) ? t : System.IO.Path.Combine(path, t);
}
}
}
}