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:
41
SVSim.BattleEngine/Engine/ConventionInfo.cs
Normal file
41
SVSim.BattleEngine/Engine/ConventionInfo.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using LitJson;
|
||||
using Wizard;
|
||||
|
||||
public class ConventionInfo
|
||||
{
|
||||
public enum ConventionStatus
|
||||
{
|
||||
DeckEntry = 1,
|
||||
GameStart
|
||||
}
|
||||
|
||||
public ConventionStatus Status { get; private set; }
|
||||
|
||||
public string Id { get; private set; }
|
||||
|
||||
public string Name { get; private set; }
|
||||
|
||||
public string DeckEntryLimitText { get; private set; }
|
||||
|
||||
public string StartTime { get; private set; }
|
||||
|
||||
public BattleParameter BattleParameterInstance { get; set; }
|
||||
|
||||
public bool IsSelectableTurn { get; private set; }
|
||||
|
||||
public ConventionInfo(JsonData data)
|
||||
{
|
||||
Id = data["tournament_id"].ToString();
|
||||
Name = data["name"].ToString();
|
||||
BattleParameterInstance = BattleParameter.JsonToBattleParameter(data);
|
||||
Status = (ConventionStatus)data["status"].ToInt();
|
||||
DeckEntryLimitText = ConvertTime.ToLocal(DateTime.Parse(data["tournament_start_date"].ToString())).ToString();
|
||||
IsSelectableTurn = data["is_selectable_turn"].ToInt() == 1;
|
||||
}
|
||||
|
||||
public ConventionInfo(string id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user