mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
20 lines
694 B
C#
20 lines
694 B
C#
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Recv.RogueCommon;
|
|
|
|
[Opcode(CmdIds.FinishRogueCommonDialogueCsReq)]
|
|
public class HandlerFinishRogueCommonDialogueCsReq : Handler
|
|
{
|
|
public override async Task OnHandle(Connection connection, byte[] header, byte[] data)
|
|
{
|
|
var req = FinishRogueCommonDialogueCsReq.Parser.ParseFrom(data);
|
|
|
|
var rogue = connection.Player!.RogueManager?.GetRogueInstance();
|
|
if (rogue == null) return;
|
|
|
|
await rogue.HandleFinishDialogueGroup((int)req.EventUniqueId);
|
|
|
|
await connection.SendPacket(CmdIds.FinishRogueCommonDialogueScRsp);
|
|
}
|
|
} |