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:
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using LitJson;
|
||||
|
||||
namespace Wizard.Scripts.Network.Data.TableData.Ranking;
|
||||
|
||||
public class RankingUser
|
||||
{
|
||||
public int viewerId;
|
||||
|
||||
public int rankingRank;
|
||||
|
||||
public int score;
|
||||
|
||||
public string name;
|
||||
|
||||
public string countryCode;
|
||||
|
||||
public int rank;
|
||||
|
||||
public long emblemId;
|
||||
|
||||
public int degreeId;
|
||||
|
||||
public DateTime lastPlayTime;
|
||||
|
||||
public RankingUser(JsonData data)
|
||||
{
|
||||
if (data == null)
|
||||
{
|
||||
Initialize();
|
||||
return;
|
||||
}
|
||||
viewerId = data["viewer_id"].ToInt();
|
||||
rankingRank = data["ranking_rank"].ToInt();
|
||||
score = data["score"].ToInt();
|
||||
name = data["name"].ToString();
|
||||
countryCode = (string)data["country_code"];
|
||||
rank = data["rank"].ToInt();
|
||||
emblemId = data["emblem_id"].ToLong();
|
||||
degreeId = data["degree_id"].ToInt();
|
||||
string text = data["last_play_time"].ToString();
|
||||
lastPlayTime = (string.IsNullOrEmpty(text) ? default(DateTime) : DateTime.Parse(text));
|
||||
}
|
||||
|
||||
private void Initialize()
|
||||
{
|
||||
viewerId = 0;
|
||||
rankingRank = 0;
|
||||
score = 0;
|
||||
rank = 0;
|
||||
name = "";
|
||||
countryCode = "";
|
||||
emblemId = 0L;
|
||||
degreeId = 0;
|
||||
lastPlayTime = new DateTime(0L);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user