[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>
88 lines
2.0 KiB
C#
88 lines
2.0 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace Wizard;
|
|
|
|
public class AIDataLibrary
|
|
{
|
|
private readonly AIDeckData _basicDic;
|
|
|
|
private readonly AIDeckData _commonDic;
|
|
|
|
private readonly AIDeckData _allyCommonDic;
|
|
|
|
private readonly Dictionary<string, AIDeckData> _deckDic;
|
|
|
|
private readonly AIStyleData _commonStyle;
|
|
|
|
private readonly Dictionary<string, AIStyleData> _deckStyleDic;
|
|
|
|
private AISetUpData setupInfoBuf;
|
|
|
|
private readonly Dictionary<string, AIEmoteSet> emoteDic;
|
|
|
|
public AISetUpData SetupInfoBuf => setupInfoBuf;
|
|
|
|
public AIDataLibrary()
|
|
{
|
|
_basicDic = new AIDeckData();
|
|
_commonDic = new AIDeckData();
|
|
_allyCommonDic = new AIDeckData();
|
|
_commonStyle = new AIStyleData();
|
|
_deckStyleDic = new Dictionary<string, AIStyleData>();
|
|
_deckDic = new Dictionary<string, AIDeckData>();
|
|
emoteDic = new Dictionary<string, AIEmoteSet>();
|
|
}
|
|
|
|
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);
|
|
}
|
|
|
|
public bool RegisterDeck(string deckName, AIDeckData deck)
|
|
{
|
|
if (_deckDic.ContainsKey(deckName))
|
|
{
|
|
return false;
|
|
}
|
|
_deckDic.Add(deckName, deck);
|
|
return true;
|
|
}
|
|
|
|
public AIDeckData SearchDeckData(string name)
|
|
{
|
|
if (!_deckDic.ContainsKey(name))
|
|
{
|
|
return null;
|
|
}
|
|
return _deckDic[name];
|
|
}
|
|
|
|
public AIStyleData SearchDeckStyle(string name)
|
|
{
|
|
if (!_deckStyleDic.ContainsKey(name))
|
|
{
|
|
return null;
|
|
}
|
|
return _deckStyleDic[name];
|
|
}
|
|
|
|
public AIEmoteSet SearchEmoteSet(string name)
|
|
{
|
|
if (!emoteDic.ContainsKey(name))
|
|
{
|
|
return null;
|
|
}
|
|
return emoteDic[name];
|
|
}
|
|
|
|
public AIDeckData GetCommonDic()
|
|
{
|
|
return _commonDic;
|
|
}
|
|
|
|
public AIDeckData GetAllyCommonDic()
|
|
{
|
|
return _allyCommonDic;
|
|
}
|
|
}
|