Files
SVSimServer/SVSim.BattleEngine/Engine/Wizard/ChatDeckLogTask.cs
gamer147 0455ff649e 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.
2026-06-05 20:38:56 -04:00

46 lines
1.7 KiB
C#

using System.Collections.Generic;
using LitJson;
namespace Wizard;
public class ChatDeckLogTask : BaseTask
{
public List<ChatMessageInfo.DeckLogData> DeckLogListRotation { get; private set; }
public List<ChatMessageInfo.DeckLogData> DeckLogListUnlimited { get; private set; }
public List<ChatMessageInfo.DeckLogData> DeckLogListPreRotation { get; private set; }
public List<ChatMessageInfo.DeckLogData> DeckLogListCrossover { get; private set; }
public List<ChatMessageInfo.DeckLogData> DeckLogListMyRotation { get; private set; }
public ChatDeckLogTask(ApiType.Type apiType)
{
base.type = apiType;
}
protected override int Parse()
{
int num = base.Parse();
if (num != 1)
{
return num;
}
JsonData jsonData = base.ResponseData["data"]["deck_log"];
GameMgr.GetIns().GetDataMgr().SetMaintenanceCardIds(base.ResponseData["data"]["maintenance_card_list"]);
DeckLogListRotation = ChatMessageInfo.DeckLogData.ParseDeckDataList(jsonData[Data.FormatConvertApi(Format.Rotation).ToString()]);
DeckLogListUnlimited = ChatMessageInfo.DeckLogData.ParseDeckDataList(jsonData[Data.FormatConvertApi(Format.Unlimited).ToString()]);
DeckLogListPreRotation = ChatMessageInfo.DeckLogData.ParseDeckDataList(jsonData[Data.FormatConvertApi(Format.PreRotation).ToString()]);
if (jsonData.TryGetValue(Data.FormatConvertApi(Format.Crossover).ToString(), out var value))
{
DeckLogListCrossover = ChatMessageInfo.DeckLogData.ParseDeckDataList(value);
}
if (jsonData.TryGetValue(Data.FormatConvertApi(Format.MyRotation).ToString(), out var value2))
{
DeckLogListMyRotation = ChatMessageInfo.DeckLogData.ParseDeckDataList(value2);
}
return num;
}
}