zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Game/Handler/UI/Mail/C2M_GetMailHandler.cs

16 lines
439 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
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)
{
2021-04-11 19:50:39 +08:00
int count = await MailComponent.Instance.GetMail(unit.Id, request.Page, response.MailList);
2021-04-08 20:09:59 +08:00
response.MailCount = count;
reply();
await ETTask.CompletedTask;
}
}
}