feat(battle-engine): full Unity/VFX/god-object shims + expanded copy closure (2570 files)
Authored Unity primitive/object-model shim, VFX layer (control-flow-preserving, InstantVfx never invokes its action -- headless suppression), god-object stubs (GameMgr/EffectMgr/UIManager with faithfully-extracted nested enums), View/UI/Touch tree, LitJson+BetterList+Tuple copied, third-party stubs. Discovered Roslyn header-error masking: fixing class-header type errors unmasks body references, so the true copy closure is ~2570 files (was 782 under masking). Errors: masked-25720 -> 268; our shim files compile clean. Remaining: ~50 residual shim/external types, 24 NGUI UI-base overrides, static-type fixes, plus likely 1-2 more unmask waves.
This commit is contained in:
43
SVSim.BattleEngine/Engine/ChallengeData.cs
Normal file
43
SVSim.BattleEngine/Engine/ChallengeData.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using LitJson;
|
||||
using Wizard;
|
||||
|
||||
public class ChallengeData
|
||||
{
|
||||
public TwoPickFormat TwoPickFormat { get; private set; }
|
||||
|
||||
public string CardPoolName { get; private set; }
|
||||
|
||||
public string CardPoolUrl { get; private set; } = string.Empty;
|
||||
|
||||
public string AnnounceId { get; private set; }
|
||||
|
||||
public string StartTime { get; private set; }
|
||||
|
||||
public string EndTime { get; private set; }
|
||||
|
||||
public int LatestCardPackId { get; private set; }
|
||||
|
||||
public int ChaosNum { get; private set; }
|
||||
|
||||
public ChallengeData(JsonData forMatIndoJson)
|
||||
{
|
||||
TwoPickFormat = (TwoPickFormat)forMatIndoJson["two_pick_type"].ToInt();
|
||||
CardPoolName = forMatIndoJson["card_pool_name"].ToString();
|
||||
if (forMatIndoJson.TryGetValue("card_pool_url", out var value))
|
||||
{
|
||||
CardPoolUrl = value.ToString();
|
||||
}
|
||||
AnnounceId = forMatIndoJson["announce_id"].ToString();
|
||||
StartTime = ConvertTime.ToLocal(DateTime.Parse(forMatIndoJson["start_time"].ToString()));
|
||||
EndTime = ConvertTime.ToLocal(DateTime.Parse(forMatIndoJson["end_time"].ToString()));
|
||||
if (forMatIndoJson.TryGetValue("last_card_pack_set_id", out var value2))
|
||||
{
|
||||
LatestCardPackId = value2.ToInt();
|
||||
}
|
||||
if (forMatIndoJson.TryGetValue("strategy_pick_num", out var value3))
|
||||
{
|
||||
ChaosNum = value3.ToInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user