22 lines
687 B
C#
22 lines
687 B
C#
|
using System;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
[ActorMessageHandler]
|
|||
|
public class C2M_FindFamilyHandler : AMActorLocationRpcHandler<Unit, C2M_FindFamily, M2C_FindFamily>
|
|||
|
{
|
|||
|
protected override async ETTask Run(Unit unit, C2M_FindFamily request, M2C_FindFamily response, Action reply)
|
|||
|
{
|
|||
|
response.Info = new FamilyInfo();
|
|||
|
var ret = await FamilyComponent.Instance.FindFamily(request.Name, response.FamilyMemberInfoList, response.RequestInfoList, response.Info);
|
|||
|
if (ret != null)
|
|||
|
{
|
|||
|
response.Message = ret ;
|
|||
|
reply();
|
|||
|
return;
|
|||
|
}
|
|||
|
reply();
|
|||
|
await ETTask.CompletedTask;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|