cull(engine-cleanup): pass-8 phase-2 cascade round 3
[trim] fully-unreachable files deleted: 3 [trim] files edited: 6, files deleted: 0, nodes removed: 23 [type-trim] files edited: 0, types removed: 0 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -84,8 +84,6 @@ public class Master
|
||||
|
||||
public Dictionary<string, AICardDataAssetSet> AIDeckDic { get; set; }
|
||||
|
||||
public List<AIPolicyDataAsset> AIStyleCommonDataList { get; set; }
|
||||
|
||||
public Dictionary<string, List<AIPolicyDataAsset>> AIStyleDic { get; set; }
|
||||
|
||||
public Dictionary<string, List<AIEmoteDataAsset>> AIEmoteDic { get; set; }
|
||||
@@ -340,51 +338,6 @@ public class Master
|
||||
return list;
|
||||
}
|
||||
|
||||
public void StartLoadAIBasicData()
|
||||
{
|
||||
AIBasicDataList = new AICardDataAssetSet();
|
||||
string assetTypePath = Toolbox.ResourcesManager.GetAssetTypePath("ai/ai_basic", ResourcesManager.AssetLoadPathType.Master, isfetch: true);
|
||||
List<string[]> csv = Utility.ConvertCSV_Array((Toolbox.ResourcesManager.LoadObject(assetTypePath) as TextAsset).ToString());
|
||||
AIBasicDataList.ConvertCsvTextToAsset(csv);
|
||||
}
|
||||
|
||||
public void StartLoadAICommonData(List<string> fileList)
|
||||
{
|
||||
AICommonDataList = new AICardDataAssetSet();
|
||||
for (int i = 0; i < fileList.Count; i++)
|
||||
{
|
||||
string path = "ai/" + fileList[i];
|
||||
string assetTypePath = Toolbox.ResourcesManager.GetAssetTypePath(path, ResourcesManager.AssetLoadPathType.Master, isfetch: true);
|
||||
List<string[]> csv = Utility.ConvertCSV_Array((Toolbox.ResourcesManager.LoadObject(assetTypePath) as TextAsset).ToString());
|
||||
AICommonDataList.ConvertCsvTextToAsset(csv);
|
||||
}
|
||||
}
|
||||
|
||||
public void StartLoadAIAllyCommonData(List<string> fileList)
|
||||
{
|
||||
AIAllyCommonDataList = new AICardDataAssetSet();
|
||||
for (int i = 0; i < fileList.Count; i++)
|
||||
{
|
||||
string path = "ai/" + fileList[i];
|
||||
string assetTypePath = Toolbox.ResourcesManager.GetAssetTypePath(path, ResourcesManager.AssetLoadPathType.Master, isfetch: true);
|
||||
List<string[]> csv = Utility.ConvertCSV_Array((Toolbox.ResourcesManager.LoadObject(assetTypePath) as TextAsset).ToString());
|
||||
AIAllyCommonDataList.ConvertCsvTextToAsset(csv);
|
||||
}
|
||||
}
|
||||
|
||||
public void StartLoadAIDeckData(int deckID)
|
||||
{
|
||||
if (AIDeckDic == null)
|
||||
{
|
||||
AIDeckDic = new Dictionary<string, AICardDataAssetSet>();
|
||||
}
|
||||
string text = "ai/" + AIDeckFileNameList.GetFileName(deckID);
|
||||
if (!AIDeckDic.ContainsKey(text))
|
||||
{
|
||||
LoadAIDeckData(text);
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadAIDeckData(string fileName)
|
||||
{
|
||||
string assetTypePath = Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master, isfetch: true);
|
||||
@@ -394,23 +347,6 @@ public class Master
|
||||
AIDeckDic.Add(fileName, aICardDataAssetSet);
|
||||
}
|
||||
|
||||
public void StartLoadAIStyleData(int styleID)
|
||||
{
|
||||
if (AIStyleDic == null)
|
||||
{
|
||||
AIStyleDic = new Dictionary<string, List<AIPolicyDataAsset>>();
|
||||
}
|
||||
string fileName = AIStyleFileNameList.GetFileName(styleID);
|
||||
if (fileName != null && !(fileName == ""))
|
||||
{
|
||||
string text = "ai/" + fileName;
|
||||
if (!AIStyleDic.ContainsKey(text))
|
||||
{
|
||||
LoadAIStyleData(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadAIStyleData(string fileName)
|
||||
{
|
||||
string assetTypePath = Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master, isfetch: true);
|
||||
@@ -422,23 +358,6 @@ public class Master
|
||||
AIStyleDic.Add(fileName, list);
|
||||
}
|
||||
|
||||
public void StartLoadAIEmoteData(int emoteID)
|
||||
{
|
||||
if (AIEmoteDic == null)
|
||||
{
|
||||
AIEmoteDic = new Dictionary<string, List<AIEmoteDataAsset>>();
|
||||
}
|
||||
string fileName = AIEmoteFileNameList.GetFileName(emoteID);
|
||||
if (fileName != null && !(fileName == ""))
|
||||
{
|
||||
string text = "ai/" + fileName;
|
||||
if (!AIEmoteDic.ContainsKey(text))
|
||||
{
|
||||
LoadAIEmoteData(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void LoadAIEmoteData(string fileName)
|
||||
{
|
||||
string assetTypePath = Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master, isfetch: true);
|
||||
@@ -449,47 +368,4 @@ public class Master
|
||||
}
|
||||
AIEmoteDic.Add(fileName, list);
|
||||
}
|
||||
|
||||
private void RegisterAIDeckCsvFilePath(List<string> aiPaths, int deckID)
|
||||
{
|
||||
string fileName = AIDeckFileNameList.GetFileName(deckID);
|
||||
if (AIDeckDic == null || !AIDeckDic.ContainsKey(fileName))
|
||||
{
|
||||
aiPaths.Add(Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master));
|
||||
}
|
||||
}
|
||||
|
||||
private void RegisterAICommonCsvFilePaths(List<string> aiPaths)
|
||||
{
|
||||
for (int i = 0; i < AICommonFileNameList.Count; i++)
|
||||
{
|
||||
aiPaths.Add(Toolbox.ResourcesManager.GetAssetTypePath(AICommonFileNameList[i], ResourcesManager.AssetLoadPathType.Master));
|
||||
}
|
||||
}
|
||||
|
||||
private void RegisterAIAllyCommonCsvFilePaths(List<string> aiPaths)
|
||||
{
|
||||
for (int i = 0; i < AIAllyCommonFileNameList.Count; i++)
|
||||
{
|
||||
aiPaths.Add(Toolbox.ResourcesManager.GetAssetTypePath(AIAllyCommonFileNameList[i], ResourcesManager.AssetLoadPathType.Master));
|
||||
}
|
||||
}
|
||||
|
||||
private void RegisterAIEmoteCsvFilePath(List<string> aiPaths, int emoteID)
|
||||
{
|
||||
string fileName = AIEmoteFileNameList.GetFileName(emoteID);
|
||||
if (fileName != null && !(fileName == "") && (AIEmoteDic == null || !AIEmoteDic.ContainsKey(fileName)))
|
||||
{
|
||||
aiPaths.Add(Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master));
|
||||
}
|
||||
}
|
||||
|
||||
private void RegisterAIStyleCsvFilePath(List<string> aiPaths, int styleID)
|
||||
{
|
||||
string fileName = AIStyleFileNameList.GetFileName(styleID);
|
||||
if (fileName != null && !(fileName == "") && (AIStyleDic == null || !AIStyleDic.ContainsKey(fileName)))
|
||||
{
|
||||
aiPaths.Add(Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user