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:
36
SVSim.BattleEngine/Engine/Wizard/SelectSkinCardInfo.cs
Normal file
36
SVSim.BattleEngine/Engine/Wizard/SelectSkinCardInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using LitJson;
|
||||
using Wizard.Scripts.Network.Data.TaskData.Arena;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class SelectSkinCardInfo
|
||||
{
|
||||
public int CardId { get; private set; }
|
||||
|
||||
public CardBasePrm.ClanType Class { get; private set; }
|
||||
|
||||
public int SkinId { get; private set; }
|
||||
|
||||
public bool HasSkin { get; private set; }
|
||||
|
||||
public List<Wizard.Scripts.Network.Data.TaskData.Arena.Reward> RewardList { get; private set; }
|
||||
|
||||
public SelectSkinCardInfo(JsonData data, CardBasePrm.ClanType classType)
|
||||
{
|
||||
CardId = data["card_id"].ToInt();
|
||||
Class = classType;
|
||||
SkinId = data["leader_skin_id"].ToInt();
|
||||
HasSkin = data["has_leader_skin"].ToBoolean();
|
||||
RewardList = new List<Wizard.Scripts.Network.Data.TaskData.Arena.Reward>();
|
||||
if (!data.TryGetValue("reward_list", out var value))
|
||||
{
|
||||
return;
|
||||
}
|
||||
foreach (JsonData item in (IEnumerable)value)
|
||||
{
|
||||
RewardList.Add(new Wizard.Scripts.Network.Data.TaskData.Arena.Reward(item));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user