using System;
using System.Collections.Generic;
using System.Linq;
namespace NBC.Asset
{
[Serializable]
public class AssetData
{
public string Name;
public int Bundle;
///
/// 所属目录
///
public int Dir;
// ///
// /// 依赖的bundle
// ///
// public List Deps = new List();
///
/// 资源可寻址地址
///
public string Address;
///
/// 资源真实地址
///
public string Path { get; set; }
///
/// 资源Bundle
///
public string BundleName { get; set; }
public string[] Tags { get; internal set; }
///
/// 是否包含Tag
///
public bool HasTag(string[] tags)
{
if (tags == null || tags.Length == 0)
return false;
if (Tags == null || Tags.Length == 0)
return false;
foreach (var tag in tags)
{
if (Tags.Contains(tag))
return true;
}
return false;
}
}
}