cull(engine-cleanup): pass-8 phase-2 cascade round 4
[trim] fully-unreachable files deleted: 0 [trim] files edited: 5, files deleted: 0, nodes removed: 12 [type-trim] files edited: 0, types removed: 0 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -38,16 +38,6 @@ public class AIDataLibrary
|
|||||||
setupInfoBuf = new AISetUpData(classID, logicLv, deckName, styleName, emoteName, useEmote, useInnerEmote, enemyAiID, specialAbilityList);
|
setupInfoBuf = new AISetUpData(classID, logicLv, deckName, styleName, emoteName, useEmote, useInnerEmote, enemyAiID, specialAbilityList);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool RegisterDeck(string deckName, AIDeckData deck)
|
|
||||||
{
|
|
||||||
if (_deckDic.ContainsKey(deckName))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
_deckDic.Add(deckName, deck);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AIDeckData SearchDeckData(string name)
|
public AIDeckData SearchDeckData(string name)
|
||||||
{
|
{
|
||||||
if (!_deckDic.ContainsKey(name))
|
if (!_deckDic.ContainsKey(name))
|
||||||
|
|||||||
@@ -13,28 +13,6 @@ public class AIDeckData
|
|||||||
cardDic = new Dictionary<int, AICardData>();
|
cardDic = new Dictionary<int, AICardData>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool RegisterCardData(AICardDataAsset asset, AICardData mergeData = null, bool isMergeDefaultParameter = false)
|
|
||||||
{
|
|
||||||
if (cardDic.ContainsKey(asset.CardID))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
AICardData aICardData = new AICardData(asset);
|
|
||||||
if (mergeData != null)
|
|
||||||
{
|
|
||||||
if (isMergeDefaultParameter)
|
|
||||||
{
|
|
||||||
aICardData.MergeCardData(mergeData);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
aICardData.MergeTagFromAnotherData(mergeData);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
cardDic.Add(asset.CardID, aICardData);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AICardData SearchCardData(int card_id)
|
public AICardData SearchCardData(int card_id)
|
||||||
{
|
{
|
||||||
AICardData value = null;
|
AICardData value = null;
|
||||||
|
|||||||
@@ -18,16 +18,6 @@ public class AIStyleData
|
|||||||
categoryFilter = filter;
|
categoryFilter = filter;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CreateFromAsset(List<AIPolicyDataAsset> assetList)
|
|
||||||
{
|
|
||||||
foreach (AIPolicyDataAsset asset in assetList)
|
|
||||||
{
|
|
||||||
AIPolicyData aIPolicyData = new AIPolicyData(asset);
|
|
||||||
AIStyleKey key = new AIStyleKey(aIPolicyData.Category, aIPolicyData.PolicyType);
|
|
||||||
MixInPolicy(key, aIPolicyData);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<AIPolicyData> ConvertToPolicyList()
|
public List<AIPolicyData> ConvertToPolicyList()
|
||||||
{
|
{
|
||||||
List<AIPolicyData> list = new List<AIPolicyData>();
|
List<AIPolicyData> list = new List<AIPolicyData>();
|
||||||
|
|||||||
@@ -76,22 +76,12 @@ public class Master
|
|||||||
|
|
||||||
public List<TutorialAreaSelect> TutorialAreaSelectList { get; set; }
|
public List<TutorialAreaSelect> TutorialAreaSelectList { get; set; }
|
||||||
|
|
||||||
public AICardDataAssetSet AIBasicDataList { get; set; }
|
|
||||||
|
|
||||||
public AICardDataAssetSet AICommonDataList { get; set; }
|
|
||||||
|
|
||||||
public AICardDataAssetSet AIAllyCommonDataList { get; set; }
|
|
||||||
|
|
||||||
public Dictionary<string, AICardDataAssetSet> AIDeckDic { get; set; }
|
public Dictionary<string, AICardDataAssetSet> AIDeckDic { get; set; }
|
||||||
|
|
||||||
public Dictionary<string, List<AIPolicyDataAsset>> AIStyleDic { get; set; }
|
public Dictionary<string, List<AIPolicyDataAsset>> AIStyleDic { get; set; }
|
||||||
|
|
||||||
public Dictionary<string, List<AIEmoteDataAsset>> AIEmoteDic { get; set; }
|
public Dictionary<string, List<AIEmoteDataAsset>> AIEmoteDic { get; set; }
|
||||||
|
|
||||||
public List<string> AICommonFileNameList { get; set; }
|
|
||||||
|
|
||||||
public List<string> AIAllyCommonFileNameList { get; set; }
|
|
||||||
|
|
||||||
public AIDeckFileNameList AIDeckFileNameList { get; set; }
|
public AIDeckFileNameList AIDeckFileNameList { get; set; }
|
||||||
|
|
||||||
public AIEmoteFileNameList AIEmoteFileNameList { get; set; }
|
public AIEmoteFileNameList AIEmoteFileNameList { get; set; }
|
||||||
@@ -337,35 +327,4 @@ public class Master
|
|||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadAIDeckData(string fileName)
|
|
||||||
{
|
|
||||||
string assetTypePath = Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master, isfetch: true);
|
|
||||||
AICardDataAssetSet aICardDataAssetSet = new AICardDataAssetSet();
|
|
||||||
List<string[]> csv = Utility.ConvertCSV_Array((Toolbox.ResourcesManager.LoadObject(assetTypePath) as TextAsset).ToString());
|
|
||||||
aICardDataAssetSet.ConvertCsvTextToAsset(csv);
|
|
||||||
AIDeckDic.Add(fileName, aICardDataAssetSet);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LoadAIStyleData(string fileName)
|
|
||||||
{
|
|
||||||
string assetTypePath = Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master, isfetch: true);
|
|
||||||
List<AIPolicyDataAsset> list = new List<AIPolicyDataAsset>();
|
|
||||||
foreach (string[] item in Utility.ConvertCSV_Array((Toolbox.ResourcesManager.LoadObject(assetTypePath) as TextAsset).ToString()))
|
|
||||||
{
|
|
||||||
list.Add(new AIPolicyDataAsset(item));
|
|
||||||
}
|
|
||||||
AIStyleDic.Add(fileName, list);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LoadAIEmoteData(string fileName)
|
|
||||||
{
|
|
||||||
string assetTypePath = Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master, isfetch: true);
|
|
||||||
List<AIEmoteDataAsset> list = new List<AIEmoteDataAsset>();
|
|
||||||
foreach (string[] item in Utility.ConvertCSV_Array((Toolbox.ResourcesManager.LoadObject(assetTypePath) as TextAsset).ToString()))
|
|
||||||
{
|
|
||||||
list.Add(new AIEmoteDataAsset(item));
|
|
||||||
}
|
|
||||||
AIEmoteDic.Add(fileName, list);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ public class GameMgr
|
|||||||
private GameObjMgr _gameObj = new GameObjMgr();
|
private GameObjMgr _gameObj = new GameObjMgr();
|
||||||
private PrefabMgr _prefab;
|
private PrefabMgr _prefab;
|
||||||
private InputMgr _input;
|
private InputMgr _input;
|
||||||
private BattleControl _battleCtrl;
|
|
||||||
private NetworkUserInfoData _netUser;
|
private NetworkUserInfoData _netUser;
|
||||||
|
|
||||||
public EffectMgr GetEffectMgr() => _effect ??= new EffectMgr();
|
public EffectMgr GetEffectMgr() => _effect ??= new EffectMgr();
|
||||||
|
|||||||
Reference in New Issue
Block a user