feat(battle-engine): M1 auto-copy closure (782 battle-logic files)
Compile-driven bulk-copy loop (tools/engine-port/m1_copy_loop.py) pulled the precise reference closure of the battle-core roots, stopping at the classify god-object/View-VFX-UI boundary. 782 files; no re-explosion (M0 had estimated ~order 1000). Residual frontier = 52 shim-classified + 80 external (Unity/BCL) types to author next.
This commit is contained in:
32
SVSim.BattleEngine/Engine/Wizard/CardPrm.cs
Normal file
32
SVSim.BattleEngine/Engine/Wizard/CardPrm.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class CardPrm
|
||||
{
|
||||
public int Id { get; private set; }
|
||||
|
||||
public bool IsEvolve { get; private set; }
|
||||
|
||||
public int ChantCount { get; private set; } = -1;
|
||||
|
||||
public CardPrm(string cardPrmText)
|
||||
{
|
||||
if (cardPrmText.Contains('_'))
|
||||
{
|
||||
string[] array = cardPrmText.Split('_');
|
||||
Id = int.Parse(array[0]);
|
||||
IsEvolve = array[1] == "1";
|
||||
}
|
||||
else if (cardPrmText.Contains('|'))
|
||||
{
|
||||
string[] array2 = cardPrmText.Split('|');
|
||||
Id = int.Parse(array2[0]);
|
||||
ChantCount = int.Parse(array2[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Id = int.Parse(cardPrmText);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user