2021-04-08 20:09:59 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
[ActorMessageHandler]
|
|
|
|
|
public class C2M_GetFamilyHandler : AMActorLocationRpcHandler<Unit, C2M_GetFamily, M2C_GetFamily>
|
|
|
|
|
{
|
|
|
|
|
protected override async ETTask Run(Unit unit, C2M_GetFamily request, M2C_GetFamily response, Action reply)
|
|
|
|
|
{
|
|
|
|
|
response.Info = new FamilyInfo();
|
2021-04-11 19:50:39 +08:00
|
|
|
|
string ret = await FamilyComponent.Instance.GetFamily(unit, response.FamilyMemberInfoList,response.RequestInfoList,response.Info);
|
2021-04-08 20:09:59 +08:00
|
|
|
|
if (ret != null)
|
|
|
|
|
{
|
|
|
|
|
response.Message = ret;
|
|
|
|
|
reply();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
reply();
|
|
|
|
|
await ETTask.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|