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:
46
SVSim.BattleEngine/Engine/Wizard/GatheringFriendListTask.cs
Normal file
46
SVSim.BattleEngine/Engine/Wizard/GatheringFriendListTask.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System.Collections.Generic;
|
||||
using LitJson;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class GatheringFriendListTask : BaseTask
|
||||
{
|
||||
public class InviteFriendData : GatheringUserInfo
|
||||
{
|
||||
public bool IsJoinGathering { get; private set; }
|
||||
|
||||
public bool IsInvited { get; private set; }
|
||||
|
||||
public InviteFriendData(JsonData data, bool isJoinedGuild, bool isInvited)
|
||||
: base(data)
|
||||
{
|
||||
IsJoinGathering = isJoinedGuild;
|
||||
IsInvited = isInvited;
|
||||
}
|
||||
}
|
||||
|
||||
public List<InviteFriendData> InviteFriendList { get; private set; }
|
||||
|
||||
public GatheringFriendListTask()
|
||||
{
|
||||
base.type = ApiType.Type.GatheringFriendList;
|
||||
}
|
||||
|
||||
protected override int Parse()
|
||||
{
|
||||
int num = base.Parse();
|
||||
if (num != 1)
|
||||
{
|
||||
return num;
|
||||
}
|
||||
InviteFriendList = new List<InviteFriendData>();
|
||||
JsonData jsonData = base.ResponseData["data"];
|
||||
for (int i = 0; i < jsonData.Count; i++)
|
||||
{
|
||||
JsonData jsonData2 = jsonData[i];
|
||||
InviteFriendData item = new InviteFriendData(jsonData2, jsonData2["is_join_gathering"].ToBoolean(), jsonData2["is_invited"].ToBoolean());
|
||||
InviteFriendList.Add(item);
|
||||
}
|
||||
return num;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user