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.
39 lines
978 B
C#
39 lines
978 B
C#
namespace Wizard.Scripts.Network.Data.TaskData.SpotCardExchange;
|
|
|
|
public class GachaPointExchangeTask : BaseTask
|
|
{
|
|
public class GachaPointExchangeTaskParam : BaseParam
|
|
{
|
|
public int card_id;
|
|
|
|
public int parent_gacha_id;
|
|
|
|
public int odds_gacha_id;
|
|
}
|
|
|
|
public GachaPointExchangeTask()
|
|
{
|
|
base.type = ApiType.Type.GachaPointExchange;
|
|
}
|
|
|
|
public void SetParameter(int cardId, int parentGachaId, int oddsId)
|
|
{
|
|
GachaPointExchangeTaskParam gachaPointExchangeTaskParam = new GachaPointExchangeTaskParam();
|
|
gachaPointExchangeTaskParam.card_id = cardId;
|
|
gachaPointExchangeTaskParam.parent_gacha_id = parentGachaId;
|
|
gachaPointExchangeTaskParam.odds_gacha_id = oddsId;
|
|
base.Params = gachaPointExchangeTaskParam;
|
|
}
|
|
|
|
protected override int Parse()
|
|
{
|
|
int num = base.Parse();
|
|
if (num != 1)
|
|
{
|
|
return num;
|
|
}
|
|
PlayerStaticData.UpdateHaveUserGoodsNumByJsonData(base.ResponseData["data"]["reward_list"]);
|
|
return num;
|
|
}
|
|
}
|