CTT/Server/Hotfix/Game/Handler/UI/Mail/C2M_GetMailHandler.cs

16 lines
439 B
C#
Executable File

using System;
namespace ET
{
[ActorMessageHandler]
public class C2M_GetMailHandler : AMActorLocationRpcHandler<Unit, C2M_GetMail, M2C_GetMail>
{
protected override async ETTask Run(Unit unit, C2M_GetMail request, M2C_GetMail response, Action reply)
{
int count = await MailComponent.Instance.GetMail(unit.Id, request.Page, response.MailList);
response.MailCount = count;
reply();
await ETTask.CompletedTask;
}
}
}