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:
45
SVSim.BattleEngine/Engine/Wizard/ChatDeckLogTask.cs
Normal file
45
SVSim.BattleEngine/Engine/Wizard/ChatDeckLogTask.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user