52 lines
1.3 KiB
C#
52 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using NLDPB;
|
|
|
|
namespace Gameplay.LegionBattle
|
|
{
|
|
public partial class LegionBattleManager
|
|
{
|
|
#region 军团战外部
|
|
|
|
public List<BattleMemberGroup> BattleMemberGroups = new ();
|
|
|
|
#endregion
|
|
}
|
|
|
|
public class BattleMemberGroup
|
|
{
|
|
public int ActorID;
|
|
public int HeadIconIndex;
|
|
public string Name;
|
|
public int Level;
|
|
public List<BattleTeam> Teams = new();
|
|
public bool IsMercenary;
|
|
|
|
public BattleMemberGroup(MSG_LB_Member lbMember, bool isMercenary = false)
|
|
{
|
|
ActorID = (int)lbMember.ActorId;
|
|
HeadIconIndex = (int)lbMember.HeadIcon;
|
|
Name = lbMember.Name;
|
|
Level = (int)lbMember.Level;
|
|
IsMercenary = isMercenary;
|
|
foreach (var team in lbMember.Teams)
|
|
{
|
|
Teams.Add(new BattleTeam(team));
|
|
}
|
|
}
|
|
}
|
|
|
|
public class BattleTeam
|
|
{
|
|
public int CommanderID;
|
|
public List<int> UnitIDs = new();
|
|
|
|
public BattleTeam(MSG_LB_Team lbTeam)
|
|
{
|
|
CommanderID = (int)lbTeam.Commander;
|
|
foreach (var unit in lbTeam.Units)
|
|
{
|
|
UnitIDs.Add((int)unit);
|
|
}
|
|
}
|
|
}
|
|
} |