WutheringWaves/GameServer/Handlers/DailyActivityMessageHandler.cs

25 lines
742 B
C#
Raw Normal View History

2024-02-09 09:20:14 +00:00
using GameServer.Handlers.Attributes;
using GameServer.Network;
using Protocol;
namespace GameServer.Handlers;
internal class DailyActivityMessageHandler : MessageHandlerBase
{
public DailyActivityMessageHandler(KcpSession session) : base(session)
{
// DailyActivityMessageHandler.
}
[MessageHandler(MessageId.ActivityRequest)]
public async Task OnActivityRequest(ReadOnlyMemory<byte> _)
{
await Session.Rpc.ReturnAsync(MessageId.ActivityResponse, new ActivityResponse());
}
[MessageHandler(MessageId.LivenessRequest)]
public async Task OnLivenessRequest(ReadOnlyMemory<byte> _)
{
await Session.Rpc.ReturnAsync(MessageId.LivenessResponse, new LivenessResponse());
}
}