Files
DanhengServer-OpenSource/GameServer/Server/Packet/Send/Challenge/PacketChallengeBossPhaseSettleNotify.cs
Somebody 87d228eb79 Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
2024-07-22 17:12:03 +08:00

26 lines
873 B
C#

using EggLink.DanhengServer.Game.Challenge;
using EggLink.DanhengServer.Proto;
using EggLink.DanhengServer.Server.Packet;
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Challenge;
public class PacketChallengeBossPhaseSettleNotify : BasePacket
{
public PacketChallengeBossPhaseSettleNotify(ChallengeInstance challenge) : base(CmdIds
.ChallengeBossPhaseSettleNotify)
{
var proto = new ChallengeBossPhaseSettleNotify
{
ChallengeId = (uint)challenge.Excel.ID,
IsWin = challenge.IsWin(),
ChallengeScore = (uint)challenge.ScoreStage1,
ScoreTwo = (uint)challenge.ScoreStage2,
Star = (uint)challenge.Stars,
Phase = (uint)challenge.CurrentStage,
IsRemainingAction = true,
HCLKAEHJCDO = true
};
SetData(proto);
}
}