22 lines
690 B
C#
Executable File
22 lines
690 B
C#
Executable File
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();
|
|
string 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;
|
|
}
|
|
}
|
|
} |