Revert "提交修改"

This reverts commit 5750c4fe56.
This commit is contained in:
2025-10-29 22:41:47 +08:00
parent 5750c4fe56
commit 234b18d3f8
2148 changed files with 5550 additions and 13963 deletions

View File

@@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace NBC.Asset.Editor
{
[Serializable]
public class BuildBundle
{
public string Name;
public string Hash;
public int Size;
public List<BuildAsset> Assets = new List<BuildAsset>();
public string[] Dependencies;
/// <summary>
/// 资源包标签
/// </summary>
public string Tags;
public void AddAsset(ICollection<BuildAsset> assets)
{
foreach (var asset in assets)
{
AddAsset(asset);
}
}
public void AddAsset(BuildAsset asset)
{
asset.Bundle = Name;
Assets.Add(asset);
}
public string[] GetAssetNames()
{
HashSet<string> assetNames = new HashSet<string>();
foreach (var asset in Assets)
{
assetNames.Add(asset.Path);
}
return assetNames.ToArray();
}
}
}