Replaces partial EffectMgr.EffectType with all 226 decomp values; copies the IsNotNullOrEmpty/EquelsID/FindFromCardId/GetAllFuncVfxResults extension files + UI extensions; adds Renderer/MeshFilter shared-material/mesh/sortingOrder. Compile loop then closed the revealed deps (3242 files). 9.1k -> 18 errors.
34 lines
855 B
C#
34 lines
855 B
C#
using LitJson;
|
|
|
|
namespace Wizard;
|
|
|
|
public class SealedGetMaintCardListTask : BaseTask
|
|
{
|
|
public SealedGetMaintCardListTask()
|
|
{
|
|
base.type = ApiType.Type.ArenaSealedGetMaintCardList;
|
|
}
|
|
|
|
protected override int Parse()
|
|
{
|
|
int num = base.Parse();
|
|
if (num != 1)
|
|
{
|
|
return num;
|
|
}
|
|
JsonData jsonData = base.ResponseData["data"]["maintenance_card_list"];
|
|
int count = jsonData.Count;
|
|
int[] array = ((count > 0) ? new int[count * 3] : null);
|
|
int num2 = 0;
|
|
for (int i = 0; i < count; i++)
|
|
{
|
|
int num3 = jsonData[i]["card_id"].ToInt();
|
|
array[num2++] = num3;
|
|
array[num2++] = SealedData.ConvertToSealedCardId(num3, isPhantomCard: false);
|
|
array[num2++] = SealedData.ConvertToSealedCardId(num3, isPhantomCard: true);
|
|
}
|
|
GameMgr.GetIns().GetDataMgr().SetMaintenanceCardIds(array);
|
|
return num;
|
|
}
|
|
}
|