feat(battle-engine): EffectType full enum + collection/card/vfx extension copies
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.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user