mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
35 lines
995 B
C#
35 lines
995 B
C#
using EggLink.DanhengServer.Database.Scene;
|
|
using EggLink.DanhengServer.GameServer.Game.Player;
|
|
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Raid;
|
|
|
|
public class PacketStartRaidScRsp : BasePacket
|
|
{
|
|
public PacketStartRaidScRsp(RaidRecord record, PlayerInstance player) : base(CmdIds.StartRaidScRsp)
|
|
{
|
|
var proto = new StartRaidScRsp
|
|
{
|
|
Scene = new RaidPlayerData
|
|
{
|
|
Lineup = player.LineupManager!.GetCurLineup()!.ToProto(),
|
|
RaidId = (uint)record.RaidId,
|
|
RaidSceneInfo = player.SceneInstance!.ToProto(),
|
|
WorldLevel = (uint)record.WorldLevel
|
|
}
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
|
|
public PacketStartRaidScRsp(Retcode ret) : base(CmdIds.StartRaidScRsp)
|
|
{
|
|
var proto = new StartRaidScRsp
|
|
{
|
|
Retcode = (uint)ret
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
} |