feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
This commit is contained in:
35
SVSim.BattleEngine/Engine/RegisterChangeUnionBurstCount.cs
Normal file
35
SVSim.BattleEngine/Engine/RegisterChangeUnionBurstCount.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
public class RegisterChangeUnionBurstCount : RegisterAlter
|
||||
{
|
||||
private int _gainValue;
|
||||
|
||||
private readonly string UnionBurstCountParameter = "unionburst";
|
||||
|
||||
public RegisterChangeUnionBurstCount(List<BattleCardBase> cardList, SkillBase skill, int gainCount)
|
||||
: base(cardList, skill)
|
||||
{
|
||||
base.IndexList = new List<int>();
|
||||
if (cardList != null && cardList.Count > 0)
|
||||
{
|
||||
cardList.ForEach(delegate(BattleCardBase x)
|
||||
{
|
||||
if (!base.IndexList.Any((int z) => z == x.Index))
|
||||
{
|
||||
base.IndexList.Add(x.Index);
|
||||
}
|
||||
});
|
||||
}
|
||||
_gainValue = gainCount;
|
||||
IsSelf = skill.SkillPrm.ownerCard.IsPlayer;
|
||||
}
|
||||
|
||||
public override Dictionary<string, object> MakeSendData()
|
||||
{
|
||||
Dictionary<string, object> dictionary = base.MakeSendData();
|
||||
dictionary.Add(ActionBaseParameter.type.ToString(), ActionBaseParameter.add.ToString());
|
||||
dictionary.Add(UnionBurstCountParameter, "a+" + _gainValue);
|
||||
return MakeAttachTarget(dictionary);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user