21 lines
565 B
C#
Executable File
21 lines
565 B
C#
Executable File
using System;
|
|
|
|
namespace ET
|
|
{
|
|
[ActorMessageHandler]
|
|
public class C2M_GetFriendHandler : AMActorLocationRpcHandler<Unit, C2M_GetFriend, M2C_GetFriend>
|
|
{
|
|
protected override async ETTask Run(Unit unit, C2M_GetFriend request, M2C_GetFriend response, Action reply)
|
|
{
|
|
string ret = await FriendComponent.Instance.GetFriend(unit.Id, response.FriendInfoList, response.RequestInfoList);
|
|
if (!ret.Equals(string.Empty))
|
|
{
|
|
response.Message = ret;
|
|
reply();
|
|
return;
|
|
}
|
|
reply();
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
} |