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

22 lines
663 B
C#

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