zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Game/Handler/Chat/C2M_RequestChatHandler.cs

19 lines
529 B
C#

using System;
namespace ET
{
[ActorMessageHandler]
public class C2M_RequestChatHandler : AMActorLocationRpcHandler<Unit, C2M_RequestChat, M2C_RequestChat>
{
protected override async ETTask Run(Unit unit, C2M_RequestChat request, M2C_RequestChat response, Action reply)
{
string ret =await Chat.Instance.RequestCaht(unit, request.Type, request.Content, request.Id);
if (!ret.Equals(string.Empty))
{
response.Message = ret;
}
reply();
await ETTask.CompletedTask;
}
}
}