2021-04-08 20:09:59 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
|
{
|
|
|
|
|
[ActorMessageHandler]
|
|
|
|
|
public class C2M_ForgeEquipHandler : AMActorLocationRpcHandler<Unit, C2M_ForgeEquip, M2C_ForgeEquip>
|
|
|
|
|
{
|
|
|
|
|
protected override async ETTask Run(Unit unit, C2M_ForgeEquip request, M2C_ForgeEquip response, Action reply)
|
|
|
|
|
{
|
2021-04-11 19:50:39 +08:00
|
|
|
|
string ret = await ItemComponent.Instance.ForgeEquip(unit, request.Id);
|
2021-04-08 20:09:59 +08:00
|
|
|
|
if (!ret.Equals(string.Empty))
|
|
|
|
|
{
|
|
|
|
|
response.Message = ret;
|
|
|
|
|
reply();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
BagHelper.GetBagInfo(unit,response.BagMapList);
|
|
|
|
|
reply();
|
|
|
|
|
await ETTask.CompletedTask;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|