mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Rogue;
|
|
|
|
public class PacketSyncRogueCommonActionResultScNotify : BasePacket
|
|
{
|
|
public PacketSyncRogueCommonActionResultScNotify(int 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(int 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);
|
|
}
|
|
} |