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.
41 lines
960 B
C#
41 lines
960 B
C#
using System;
|
|
using System.Text;
|
|
using BestHTTP.Decompression.Zlib;
|
|
using LitJson;
|
|
|
|
namespace Wizard;
|
|
|
|
public class GetCardMasterTask : BaseTask
|
|
{
|
|
public class CardMasterTaskParam : BaseParam
|
|
{
|
|
public string card_master_hash { get; private set; }
|
|
|
|
public CardMasterTaskParam(string cardMasterHash)
|
|
{
|
|
card_master_hash = cardMasterHash;
|
|
}
|
|
}
|
|
|
|
public JsonData CardMasterJsonData { get; private set; }
|
|
|
|
public GetCardMasterTask(string cardMasterHash)
|
|
{
|
|
base.type = ApiType.Type.GetCardMaster;
|
|
base.Params = new CardMasterTaskParam(cardMasterHash);
|
|
}
|
|
|
|
protected override int Parse()
|
|
{
|
|
int num = base.Parse();
|
|
if (num != 1)
|
|
{
|
|
return num;
|
|
}
|
|
byte[] compressed = Convert.FromBase64String(base.ResponseData["data"]["card_master"].ToString());
|
|
string json = Encoding.UTF8.GetString(GZipStream.UncompressBuffer(compressed));
|
|
CardMasterJsonData = JsonMapper.ToObject(json);
|
|
return num;
|
|
}
|
|
}
|