47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEditor;
|
|
|
|
namespace BFEditor.Resource
|
|
{
|
|
public class TimelineDependenciesChecker:BaseDependenciesChecker
|
|
{
|
|
public override string GetCheckerName()
|
|
{
|
|
return "timeline";
|
|
}
|
|
public override string GetCheckPathPrefix()
|
|
{
|
|
return "arts/timeline/";
|
|
}
|
|
|
|
protected override Dictionary<string, List<string>> GetDetailWhiteDic()
|
|
{
|
|
Dictionary<string, List<string>> detailWhiteDic = new Dictionary<string, List<string>>(){
|
|
{"arts/timeline/bossopen/",
|
|
new List<string>(){
|
|
"arts/models/maps/boss_appear.ab"
|
|
}
|
|
},
|
|
};
|
|
return detailWhiteDic;
|
|
}
|
|
|
|
public override void OnCheck(string bundleName, ref List<string> abnormalDependencies)
|
|
{
|
|
List<string> dependencies = new List<string>();
|
|
foreach(var dependent in abnormalDependencies)
|
|
{
|
|
string[] strs = dependent.Split('/');
|
|
string name = strs[strs.Length - 1].Replace(".ab", string.Empty);
|
|
if(bundleName.Contains(name))
|
|
{
|
|
continue;
|
|
}
|
|
dependencies.Add(dependent);
|
|
}
|
|
abnormalDependencies = dependencies;
|
|
}
|
|
}
|
|
} |