21 lines
633 B
C#
Executable File
21 lines
633 B
C#
Executable File
using System;
|
|
|
|
namespace ET
|
|
{
|
|
[ActorMessageHandler]
|
|
public class C2M_GetFamilyBossInfoHandler : AMActorLocationRpcHandler<Unit, C2M_GetFamilyBossInfo, M2C_GetFamilyBossInfo>
|
|
{
|
|
protected override async ETTask Run(Unit unit, C2M_GetFamilyBossInfo request, M2C_GetFamilyBossInfo response, Action reply)
|
|
{
|
|
string ret = await FamilyBossComponent.instance.GetFamilyBossInfo(unit, response.BossInfoList);
|
|
if (ret != null)
|
|
{
|
|
response.Message = ret;
|
|
reply();
|
|
return;
|
|
}
|
|
reply();
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
} |