Files
SVSimServer/SVSim.BattleEngine/Engine/BattlePlayersExtension.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

22 lines
819 B
C#

using System.Collections.Generic;
using Wizard.Battle;
public static class BattlePlayersExtension
{
public static IEnumerable<IReadOnlyBattleCardInfo> AllCards(this IEnumerable<IBattlePlayerReadOnlyInfo> battlePlayerInfos)
{
List<IReadOnlyBattleCardInfo> list = new List<IReadOnlyBattleCardInfo>();
foreach (IBattlePlayerReadOnlyInfo battlePlayerInfo in battlePlayerInfos)
{
list.Add(battlePlayerInfo.SkillInfoClass);
list.AddRange(battlePlayerInfo.SkillInfoHandCards);
list.AddRange(battlePlayerInfo.SkillInfoDeckCards);
list.AddRange(battlePlayerInfo.SkillInfoInPlayCards);
list.AddRange(battlePlayerInfo.SkillInfoCemeterys);
list.AddRange(battlePlayerInfo.SkillInfoBanishCards);
list.AddRange(battlePlayerInfo.SkillInfoNecromanceZoneCards);
}
return list;
}
}