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.
81 lines
1.8 KiB
C#
81 lines
1.8 KiB
C#
using LitJson;
|
|
using Wizard;
|
|
|
|
public class ArenaData : HeaderData
|
|
{
|
|
public enum eARENA_PAY
|
|
{
|
|
None = 0,
|
|
Crystal = 1,
|
|
Ticket = 3,
|
|
Rupy = 4,
|
|
Free = 5
|
|
}
|
|
|
|
public ArenaTwoPickData TwoPickData { get; set; }
|
|
|
|
public SealedData SealedData { get; private set; }
|
|
|
|
public SealedMyPageResponseData SealedMyPageResponseData { get; private set; }
|
|
|
|
public ArenaColosseum ColosseumData { get; set; }
|
|
|
|
public ArenaCompetition CompetitionData { get; set; }
|
|
|
|
public ArenaData()
|
|
{
|
|
SealedData = new SealedData();
|
|
ColosseumData = new ArenaColosseum();
|
|
CompetitionData = new ArenaCompetition();
|
|
}
|
|
|
|
public ArenaData(JsonData data)
|
|
: this()
|
|
{
|
|
if (data != null)
|
|
{
|
|
JsonData data2 = data[0];
|
|
TwoPickData = new ArenaTwoPickData(data2);
|
|
}
|
|
}
|
|
|
|
public void ClearSealedData()
|
|
{
|
|
SealedData = new SealedData();
|
|
}
|
|
|
|
public void SetSealedMyPageResponseData(JsonData rootData)
|
|
{
|
|
if (rootData.Keys.Contains("sealed_info"))
|
|
{
|
|
SealedMyPageResponseData = new SealedMyPageResponseData(rootData["sealed_info"]);
|
|
}
|
|
}
|
|
|
|
public static Format ApiDeckFormatParse(ArenaColosseum.eRule rule)
|
|
{
|
|
Format format = Format.Rotation;
|
|
switch (rule)
|
|
{
|
|
case ArenaColosseum.eRule.RotationBo1:
|
|
return Format.Rotation;
|
|
case ArenaColosseum.eRule.UnlimitedBo1:
|
|
return Format.Unlimited;
|
|
case ArenaColosseum.eRule.TwoPick:
|
|
case ArenaColosseum.eRule.TwoPickChaos:
|
|
return Format.TwoPick;
|
|
case ArenaColosseum.eRule.HOF:
|
|
case ArenaColosseum.eRule.WindFall:
|
|
return Format.Max;
|
|
case ArenaColosseum.eRule.Crossover:
|
|
return Format.Crossover;
|
|
case ArenaColosseum.eRule.MyRotation:
|
|
return Format.MyRotation;
|
|
case ArenaColosseum.eRule.Avatar:
|
|
return Format.Avatar;
|
|
default:
|
|
return Format.Max;
|
|
}
|
|
}
|
|
}
|