CTT/Server/Hotfix/Game/Handler/UI/Bag/C2M_RefreshEquipAffixHandle...

22 lines
663 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using System;
namespace ET
{
[ActorMessageHandler]
public class C2M_RefreshEquipAffixHandler : AMActorLocationRpcHandler<Unit, C2M_RefreshEquipAffix, M2C_RefreshEquipAffix>
{
protected override async ETTask Run(Unit unit, C2M_RefreshEquipAffix request, M2C_RefreshEquipAffix response, Action reply)
{
string retStr = await ItemComponent.Instance.RefreshEquipAffix(unit, request.bagIndex);
if (retStr !=null)
{
response.Message = retStr;
reply();
return;
}
reply();
await ETTask.CompletedTask;
}
}
}