资源检查
This commit is contained in:
parent
aacabf68e5
commit
4106e910e0
@ -15,8 +15,22 @@ namespace BFEditor.Resource
|
||||
{"suffer", true},
|
||||
{"vertigo", true},
|
||||
{"frozen", true},
|
||||
// {"attack", true},
|
||||
{"move", true},
|
||||
};
|
||||
|
||||
Dictionary<string, bool> heroMustNeedAni = new Dictionary<string, bool>(){
|
||||
{"attack01", true},
|
||||
{"attack02", true},
|
||||
{"attack03", true},
|
||||
{"attack04", true},
|
||||
};
|
||||
|
||||
Dictionary<string, bool> monsterMustNeedAni = new Dictionary<string, bool>(){
|
||||
{"attack01", true},
|
||||
{"attack02", true},
|
||||
{"attack03", true},
|
||||
};
|
||||
|
||||
public override string InitName()
|
||||
{
|
||||
return "Spine";
|
||||
@ -42,6 +56,30 @@ namespace BFEditor.Resource
|
||||
passed = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (assetPath.Contains("characters/p"))
|
||||
{
|
||||
foreach (var key in heroMustNeedAni.Keys)
|
||||
{
|
||||
if (!haveAni.ContainsKey(key))
|
||||
{
|
||||
currentBadRes.AddBadLog("没有动画" + key);
|
||||
passed = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (assetPath.Contains("characters/m"))
|
||||
{
|
||||
foreach (var key in monsterMustNeedAni.Keys)
|
||||
{
|
||||
if (!haveAni.ContainsKey(key))
|
||||
{
|
||||
currentBadRes.AddBadLog("没有动画" + key);
|
||||
passed = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
string floderPath = Path.GetDirectoryName(assetPath);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user