mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
23 lines
695 B
C#
23 lines
695 B
C#
using EggLink.DanhengServer.Game.Player;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.Server.Packet.Send.Lineup
|
|
{
|
|
public class PacketGetAllLineupDataScRsp : BasePacket
|
|
{
|
|
public PacketGetAllLineupDataScRsp(PlayerInstance player) : base(CmdIds.GetAllLineupDataScRsp)
|
|
{
|
|
var proto = new GetAllLineupDataScRsp()
|
|
{
|
|
CurIndex = (uint)(player.LineupManager!.LineupData.CurLineup - 1),
|
|
};
|
|
foreach (var lineup in player.LineupManager.LineupData.Lineups.Values)
|
|
{
|
|
proto.LineupList.Add(lineup.ToProto());
|
|
}
|
|
|
|
SetData(proto);
|
|
}
|
|
}
|
|
}
|