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:
@@ -1,17 +0,0 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class AICsvLoadingInfo
|
||||
{
|
||||
public int DeckId { get; private set; }
|
||||
|
||||
public int StyleId { get; private set; }
|
||||
|
||||
public int EmoteId { get; private set; }
|
||||
|
||||
public AICsvLoadingInfo(int deckId, int styleId, int emoteId)
|
||||
{
|
||||
DeckId = deckId;
|
||||
StyleId = styleId;
|
||||
EmoteId = emoteId;
|
||||
}
|
||||
}
|
||||
@@ -38,37 +38,6 @@ public class AIDataLibrary
|
||||
setupInfoBuf = new AISetUpData(classID, logicLv, deckName, styleName, emoteName, useEmote, useInnerEmote, enemyAiID, specialAbilityList);
|
||||
}
|
||||
|
||||
public void RegisterBasicData(AICardDataAsset asset)
|
||||
{
|
||||
_basicDic.RegisterCardData(asset);
|
||||
}
|
||||
|
||||
public bool RegisterCommonData(AICardDataAsset asset)
|
||||
{
|
||||
AICardData mergeData = _basicDic.SearchCardData(asset.CardID);
|
||||
return _commonDic.RegisterCardData(asset, mergeData);
|
||||
}
|
||||
|
||||
public bool RegisterAllyCommonData(AICardDataAsset asset)
|
||||
{
|
||||
AICardData mergeData = _basicDic.SearchCardData(asset.CardID);
|
||||
return _allyCommonDic.RegisterCardData(asset, mergeData);
|
||||
}
|
||||
|
||||
public void RegisterDeckToDeckDic(string deckName, List<AICardDataAsset> cardDataAssetList)
|
||||
{
|
||||
AIDeckData aIDeckData = new AIDeckData();
|
||||
for (int i = 0; i < cardDataAssetList.Count; i++)
|
||||
{
|
||||
AICardDataAsset aICardDataAsset = cardDataAssetList[i];
|
||||
int cardID = aICardDataAsset.CardID;
|
||||
bool useCommon = aICardDataAsset.UseCommon;
|
||||
AICardData mergeData = ((!useCommon) ? _basicDic.SearchCardData(cardID) : _allyCommonDic.SearchCardData(cardID));
|
||||
aIDeckData.RegisterCardData(aICardDataAsset, mergeData, useCommon);
|
||||
}
|
||||
RegisterDeck(deckName, aIDeckData);
|
||||
}
|
||||
|
||||
public bool RegisterDeck(string deckName, AIDeckData deck)
|
||||
{
|
||||
if (_deckDic.ContainsKey(deckName))
|
||||
@@ -79,16 +48,6 @@ public class AIDataLibrary
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool RegisterEmoteSet(string emoteSetName, AIEmoteSet emoteSet)
|
||||
{
|
||||
if (emoteDic.ContainsKey(emoteSetName))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
emoteDic.Add(emoteSetName, emoteSet);
|
||||
return true;
|
||||
}
|
||||
|
||||
public AIDeckData SearchDeckData(string name)
|
||||
{
|
||||
if (!_deckDic.ContainsKey(name))
|
||||
@@ -125,21 +84,4 @@ public class AIDataLibrary
|
||||
{
|
||||
return _allyCommonDic;
|
||||
}
|
||||
|
||||
public void RegisterCommonStyle(List<AIPolicyDataAsset> assetList)
|
||||
{
|
||||
_commonStyle.CreateFromAsset(assetList);
|
||||
}
|
||||
|
||||
public bool RegisterDeckStyle(string styleName, List<AIPolicyDataAsset> assetList)
|
||||
{
|
||||
if (_deckStyleDic.ContainsKey(styleName))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
AIStyleData aIStyleData = new AIStyleData();
|
||||
aIStyleData.CreateFromAsset(assetList);
|
||||
_deckStyleDic.Add(styleName, aIStyleData);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,11 +13,6 @@ public class AIDeckData
|
||||
cardDic = new Dictionary<int, AICardData>();
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
cardDic.Clear();
|
||||
}
|
||||
|
||||
public bool RegisterCardData(AICardDataAsset asset, AICardData mergeData = null, bool isMergeDefaultParameter = false)
|
||||
{
|
||||
if (cardDic.ContainsKey(asset.CardID))
|
||||
|
||||
@@ -7,13 +7,4 @@ public class AIEmoteSet
|
||||
private List<AIEmoteCmd> cmdList = new List<AIEmoteCmd>();
|
||||
|
||||
public IEnumerable<AIEmoteCmd> EmoteCmds => cmdList;
|
||||
|
||||
public void CreateFromAsset(List<AIEmoteDataAsset> assetList)
|
||||
{
|
||||
cmdList.Clear();
|
||||
foreach (AIEmoteDataAsset asset in assetList)
|
||||
{
|
||||
cmdList.Add(new AIEmoteCmd(asset));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,12 +18,6 @@ public class AIStyleData
|
||||
categoryFilter = filter;
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
categoryFilter = null;
|
||||
policyDic.Clear();
|
||||
}
|
||||
|
||||
public void CreateFromAsset(List<AIPolicyDataAsset> assetList)
|
||||
{
|
||||
foreach (AIPolicyDataAsset asset in assetList)
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class StoryAISettingData
|
||||
{
|
||||
public int EnemyAiId { get; private set; }
|
||||
|
||||
public int DeckId { get; private set; }
|
||||
|
||||
public int StyleId { get; private set; }
|
||||
|
||||
public int EmoteId { get; private set; }
|
||||
|
||||
public int LogicLevel { get; private set; }
|
||||
|
||||
public bool UseInnerEmote { get; private set; }
|
||||
|
||||
public StoryAISettingData(string[] columns)
|
||||
{
|
||||
int num = 0;
|
||||
EnemyAiId = AIScriptParser.ParseInt(columns[num++]);
|
||||
DeckId = AIScriptParser.ParseInt(columns[num++]);
|
||||
StyleId = AIScriptParser.ParseInt(columns[num++]);
|
||||
EmoteId = AIScriptParser.ParseInt(columns[num++]);
|
||||
LogicLevel = AIScriptParser.ParseInt(columns[num++]);
|
||||
UseInnerEmote = AIScriptParser.ParseInt(columns[num++]) > 0;
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class StoryAISettingDataSet
|
||||
{
|
||||
private List<StoryAISettingData> _dataTable;
|
||||
|
||||
public StoryAISettingDataSet()
|
||||
{
|
||||
_dataTable = new List<StoryAISettingData>();
|
||||
}
|
||||
}
|
||||
@@ -76,7 +76,6 @@ public class GameMgr
|
||||
public GameObjMgr GetGameObjMgr() => _gameObj;
|
||||
public PrefabMgr GetPrefabMgr() => _prefab ??= new PrefabMgr();
|
||||
public InputMgr GetInputMgr() => _input ??= new InputMgr();
|
||||
public BattleControl GetBattleCtrl() => _battleCtrl ??= new BattleControl();
|
||||
public NetworkUserInfoData GetNetworkUserInfoData() => _netUser;
|
||||
public void SetNetworkUserInfoData(NetworkUserInfoData infoData) => _netUser = infoData;
|
||||
public bool IsUseUnapprovedList(bool isPlayer) => false;
|
||||
|
||||
Reference in New Issue
Block a user