mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
39 lines
1.3 KiB
C#
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.ActionResultList.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.ActionResultList.AddRange(results);
|
|
|
|
SetData(proto);
|
|
}
|
|
} |