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:
54
SVSim.BattleEngine/Engine/Wizard/AvatarBattleInfo.cs
Normal file
54
SVSim.BattleEngine/Engine/Wizard/AvatarBattleInfo.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using LitJson;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class AvatarBattleInfo
|
||||
{
|
||||
public class AvatarBattleBonus
|
||||
{
|
||||
public string LeaderSkinId { get; private set; }
|
||||
|
||||
public int BattleStartFirstPlayerTurnBp { get; private set; }
|
||||
|
||||
public int BattleStartSecondPlayerTurnBp { get; private set; }
|
||||
|
||||
public int BattleStartMaxLife { get; private set; }
|
||||
|
||||
public string[] AbilityCosts { get; private set; }
|
||||
|
||||
public string[] Abilities { get; private set; }
|
||||
|
||||
public string[] PassiveAbilities { get; private set; }
|
||||
|
||||
public string[] AbilityDesc { get; private set; }
|
||||
|
||||
public string PassiveAbilityDesc { get; private set; }
|
||||
|
||||
public AvatarBattleBonus(JsonData json)
|
||||
{
|
||||
LeaderSkinId = json["leader_skin_id"].ToString();
|
||||
BattleStartFirstPlayerTurnBp = json["battle_start_firstplayerturn_bp"].ToInt();
|
||||
BattleStartSecondPlayerTurnBp = json["battle_start_secondplayerturn_bp"].ToInt();
|
||||
BattleStartMaxLife = json["battle_start_max_life"].ToInt();
|
||||
AbilityCosts = json["ability_cost"].ToString().Split('|');
|
||||
Abilities = json["ability"].ToString().Split(',');
|
||||
PassiveAbilities = json["passive_ability"].ToString().Split(',');
|
||||
AbilityDesc = json["ability_desc"].ToString().Split('|');
|
||||
PassiveAbilityDesc = json["passive_ability_desc"].ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public string LeaderSkinId { get; private set; }
|
||||
|
||||
public AvatarBattleBonus Bonus { get; private set; }
|
||||
|
||||
public AvatarBattleInfo(JsonData json)
|
||||
{
|
||||
LeaderSkinId = json["leader_skin_id"].ToString();
|
||||
}
|
||||
|
||||
public void SetAbility(JsonData json)
|
||||
{
|
||||
Bonus = new AvatarBattleBonus(json);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user