cull(engine-cleanup): pass-8 phase-2 cascade round 2
[trim] fully-unreachable files deleted: 3 [trim] files edited: 21, files deleted: 0, nodes removed: 38 [type-trim] files edited: 3, types removed: 3 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -33,17 +33,6 @@ public class AIDataLibrary
|
||||
emoteDic = new Dictionary<string, AIEmoteSet>();
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
_basicDic.Clear();
|
||||
_commonDic.Clear();
|
||||
_allyCommonDic.Clear();
|
||||
_deckDic.Clear();
|
||||
_commonStyle.Clear();
|
||||
_deckStyleDic.Clear();
|
||||
emoteDic.Clear();
|
||||
}
|
||||
|
||||
public void SaveBattleSetUpInfo(int classID, AI_LOGIC_LV logicLv, string deckName, string styleName, string emoteName, bool useEmote, bool useInnerEmote, int enemyAiID, List<int> specialAbilityList)
|
||||
{
|
||||
setupInfoBuf = new AISetUpData(classID, logicLv, deckName, styleName, emoteName, useEmote, useInnerEmote, enemyAiID, specialAbilityList);
|
||||
|
||||
@@ -102,22 +102,6 @@ public class AIPolicyData
|
||||
};
|
||||
}
|
||||
|
||||
public static AICategory ConvertClassIDToCategory(int id)
|
||||
{
|
||||
return id switch
|
||||
{
|
||||
1 => AICategory.ELF,
|
||||
2 => AICategory.ROYAL,
|
||||
3 => AICategory.WITCH,
|
||||
4 => AICategory.DRAGON,
|
||||
5 => AICategory.NECROMANCE,
|
||||
6 => AICategory.VAMPIRE,
|
||||
7 => AICategory.BISHOP,
|
||||
8 => AICategory.NEMESIS,
|
||||
_ => AICategory.ALL,
|
||||
};
|
||||
}
|
||||
|
||||
public bool CheckCondition(AIVirtualCard owner, List<int> playPtn, AIVirtualField field, AISituationInfo situation)
|
||||
{
|
||||
return _conditionExpr.CheckCondition(owner, playPtn, field, situation);
|
||||
|
||||
@@ -81,19 +81,4 @@ public class AIStyleData
|
||||
policyDic.Add(key, list2);
|
||||
return true;
|
||||
}
|
||||
|
||||
public void MixInStyle(AIStyleData addStyle)
|
||||
{
|
||||
foreach (KeyValuePair<AIStyleKey, List<AIPolicyData>> pair in addStyle.policyDic)
|
||||
{
|
||||
if (pair.Value == null || (categoryFilter != null && !categoryFilter.Any((AICategory c) => c == pair.Key.category)))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
foreach (AIPolicyData item in pair.Value)
|
||||
{
|
||||
MixInPolicy(pair.Key, item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,6 @@ public class CardCreateTask : BaseTask
|
||||
{
|
||||
public class CardCreateTaskParam : BaseParam
|
||||
{
|
||||
public string card_id_number_array;
|
||||
}
|
||||
|
||||
public CardCreateTask()
|
||||
|
||||
@@ -7,7 +7,6 @@ public class CardDestructTask : BaseTask
|
||||
{
|
||||
public class CardDestructTaskParam : BaseParam
|
||||
{
|
||||
public string card_id_number_array;
|
||||
}
|
||||
|
||||
public CardDestructTask()
|
||||
|
||||
@@ -38,15 +38,6 @@ public class Emotion
|
||||
return Data.Master.GetEmoteWordText(id);
|
||||
}
|
||||
|
||||
public string GetVoiceId(bool isEvolved = false)
|
||||
{
|
||||
if (!isEvolved)
|
||||
{
|
||||
return voice_id;
|
||||
}
|
||||
return evolved_voice_id;
|
||||
}
|
||||
|
||||
public string GetText(bool isEvolved = false)
|
||||
{
|
||||
if (!isEvolved)
|
||||
|
||||
@@ -90,10 +90,6 @@ public class Master
|
||||
|
||||
public Dictionary<string, List<AIEmoteDataAsset>> AIEmoteDic { get; set; }
|
||||
|
||||
public Dictionary<string, Dictionary<ClassCharaPrm.EmotionType, Emotion>> _emotionDic { get; set; }
|
||||
|
||||
public StoryAISettingDataSet QuestAISettingList { get; set; }
|
||||
|
||||
public List<string> AICommonFileNameList { get; set; }
|
||||
|
||||
public List<string> AIAllyCommonFileNameList { get; set; }
|
||||
@@ -496,53 +492,4 @@ public class Master
|
||||
aiPaths.Add(Toolbox.ResourcesManager.GetAssetTypePath(fileName, ResourcesManager.AssetLoadPathType.Master));
|
||||
}
|
||||
}
|
||||
|
||||
private void RegisterAICommonCsvPath(List<string> aiPaths)
|
||||
{
|
||||
aiPaths.Add(Toolbox.ResourcesManager.GetAssetTypePath("ai_basic", ResourcesManager.AssetLoadPathType.Master));
|
||||
if (AICommonDataList == null)
|
||||
{
|
||||
RegisterAICommonCsvFilePaths(aiPaths);
|
||||
}
|
||||
if (AIAllyCommonDataList == null)
|
||||
{
|
||||
RegisterAIAllyCommonCsvFilePaths(aiPaths);
|
||||
}
|
||||
}
|
||||
|
||||
private void RegisterAIIndividualCsvPath(List<string> aiPaths, AICsvLoadingInfo info)
|
||||
{
|
||||
if (info.DeckId >= 0)
|
||||
{
|
||||
RegisterAIDeckCsvFilePath(aiPaths, info.DeckId);
|
||||
}
|
||||
RegisterAIStyleCsvFilePath(aiPaths, info.StyleId);
|
||||
RegisterAIEmoteCsvFilePath(aiPaths, info.EmoteId);
|
||||
}
|
||||
|
||||
private void StartLoadAIBasicAndCommonData()
|
||||
{
|
||||
if (AIBasicDataList == null)
|
||||
{
|
||||
StartLoadAIBasicData();
|
||||
}
|
||||
if (AICommonDataList == null)
|
||||
{
|
||||
StartLoadAICommonData(AICommonFileNameList);
|
||||
}
|
||||
if (AIAllyCommonDataList == null)
|
||||
{
|
||||
StartLoadAIAllyCommonData(AIAllyCommonFileNameList);
|
||||
}
|
||||
}
|
||||
|
||||
private void StartLoadAIIndividualData(AICsvLoadingInfo info)
|
||||
{
|
||||
if (info.DeckId >= 0)
|
||||
{
|
||||
StartLoadAIDeckData(info.DeckId);
|
||||
}
|
||||
StartLoadAIEmoteData(info.EmoteId);
|
||||
StartLoadAIStyleData(info.StyleId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class PracticeAISettingData
|
||||
{
|
||||
public int ClassId { get; private set; }
|
||||
|
||||
public int Difficulty { 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 int MaxLife { get; private set; }
|
||||
|
||||
public PracticeAISettingData(string[] columns)
|
||||
{
|
||||
int num = 0;
|
||||
ClassId = AIScriptParser.ParseInt(columns[num++]);
|
||||
Difficulty = AIScriptParser.ParseInt(columns[num++]);
|
||||
DeckId = AIScriptParser.ParseInt(columns[num++]);
|
||||
StyleId = AIScriptParser.ParseInt(columns[num++]);
|
||||
EmoteId = AIScriptParser.ParseInt(columns[num++]);
|
||||
LogicLevel = AIScriptParser.ParseInt(columns[num++]);
|
||||
MaxLife = AIScriptParser.ParseInt(columns[num++]);
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class PracticeAISettingDataSet
|
||||
{
|
||||
private List<PracticeAISettingData> _dataTable;
|
||||
|
||||
public PracticeAISettingDataSet()
|
||||
{
|
||||
_dataTable = new List<PracticeAISettingData>();
|
||||
}
|
||||
}
|
||||
@@ -11,9 +11,4 @@ public class StoryAISettingDataSet
|
||||
{
|
||||
_dataTable = new List<StoryAISettingData>();
|
||||
}
|
||||
|
||||
public StoryAISettingData GetSettingData(int enemyAiId)
|
||||
{
|
||||
return _dataTable.First((StoryAISettingData d) => d.EnemyAiId == enemyAiId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
namespace Wizard;
|
||||
|
||||
public class VoteTask : BaseTask
|
||||
{
|
||||
public class VoteTaskParam : BaseParam
|
||||
{
|
||||
public int vote_id;
|
||||
|
||||
public int target_id;
|
||||
}
|
||||
|
||||
public VoteTask()
|
||||
{
|
||||
base.type = ApiType.Type.Vote;
|
||||
}
|
||||
|
||||
public void SetParameter(int voteId, int targetId)
|
||||
{
|
||||
VoteTaskParam voteTaskParam = new VoteTaskParam();
|
||||
voteTaskParam.vote_id = voteId;
|
||||
voteTaskParam.target_id = targetId;
|
||||
base.Params = voteTaskParam;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user