Files
DanhengServer-OpenSource/GameServer/Server/Packet/Send/RogueCommon/PacketSyncRogueCommonActionResultScNotify.cs
2024-08-13 18:51:39 +08:00

39 lines
1.3 KiB
C#

using EggLink.DanhengServer.Enums.Rogue;
using EggLink.DanhengServer.Kcp;
using EggLink.DanhengServer.Proto;
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.RogueCommon;
public class PacketSyncRogueCommonActionResultScNotify : BasePacket
{
public PacketSyncRogueCommonActionResultScNotify(RogueSubModeEnum rogueSubmode, RogueCommonActionResult result,
RogueCommonActionResultDisplayType displayType = RogueCommonActionResultDisplayType.None) : base(
CmdIds.SyncRogueCommonActionResultScNotify)
{
var proto = new SyncRogueCommonActionResultScNotify
{
RogueSubMode = (uint)rogueSubmode,
DisplayType = displayType
};
proto.ActionResult.Add(result);
SetData(proto);
}
public PacketSyncRogueCommonActionResultScNotify(RogueSubModeEnum rogueSubmode,
List<RogueCommonActionResult> results,
RogueCommonActionResultDisplayType displayType = RogueCommonActionResultDisplayType.None) : base(
CmdIds.SyncRogueCommonActionResultScNotify)
{
var proto = new SyncRogueCommonActionResultScNotify
{
RogueSubMode = (uint)rogueSubmode,
DisplayType = displayType
};
proto.ActionResult.AddRange(results);
SetData(proto);
}
}