zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Server/Hotfix/Game/Handler/UI/Bag/C2M_StrengthEquipHandler.cs

22 lines
691 B
C#
Raw Normal View History

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)
{
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;
}
}
}