2021-04-08 20:09:59 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
[ActorMessageHandler]
|
|
|
|
|
public class C2M_StrengthEquipHandler : AMActorLocationRpcHandler<Unit, C2M_StrengthEquip, M2C_StrengthEquip>
|
|
|
|
|
{
|
|
|
|
|
protected override async ETTask Run(Unit unit, C2M_StrengthEquip request, M2C_StrengthEquip response, Action reply)
|
|
|
|
|
{
|
2021-04-11 19:50:39 +08:00
|
|
|
|
(string, bool) retStr =await ItemComponent.Instance.StrangeEquip(unit, request.bagIndex);
|
2021-04-08 20:09:59 +08:00
|
|
|
|
if (retStr.Item1!=null)
|
|
|
|
|
{
|
|
|
|
|
response.Message = retStr.Item1;
|
|
|
|
|
reply();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
response.isSuccess = retStr.Item2;
|
|
|
|
|
reply();
|
|
|
|
|
await ETTask.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|