22 lines
691 B
C#
22 lines
691 B
C#
|
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)
|
|||
|
{
|
|||
|
var retStr =await ItemComponent.Instance.StrangeEquip(unit, request.bagIndex);
|
|||
|
if (retStr.Item1!=null)
|
|||
|
{
|
|||
|
response.Message = retStr.Item1;
|
|||
|
reply();
|
|||
|
return;
|
|||
|
}
|
|||
|
response.isSuccess = retStr.Item2;
|
|||
|
reply();
|
|||
|
await ETTask.CompletedTask;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|