22 lines
575 B
C#
22 lines
575 B
C#
|
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)
|
|||
|
{
|
|||
|
var ret = await ItemComponent.Instance.ForgeEquip(unit, request.Id);
|
|||
|
if (!ret.Equals(string.Empty))
|
|||
|
{
|
|||
|
response.Message = ret;
|
|||
|
reply();
|
|||
|
return;
|
|||
|
}
|
|||
|
BagHelper.GetBagInfo(unit,response.BagMapList);
|
|||
|
reply();
|
|||
|
await ETTask.CompletedTask;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|