19 lines
529 B
C#
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|