CTT/Server/Hotfix/Game/Handler/UI/Consignment/C2M_PutInConsignmentHandler.cs

22 lines
675 B
C#

using System;
namespace ET
{
[ActorMessageHandler]
public class C2M_PutInConsignmentHandler : AMActorLocationRpcHandler<Unit, C2M_PutInConsignment, M2C_PutInConsignment>
{
protected override async ETTask Run(Unit unit, C2M_PutInConsignment request, M2C_PutInConsignment response, Action reply)
{
string ret =await ConsignmentComponent.Instance.PutInConsignment(unit,request.Index,request.Count,request.Price,request.Pwd);
if (!ret.Equals(string.Empty))
{
response.Message = ret;
reply();
return;
}
BagHelper.GetBagInfo(unit, response.BagMapList);
reply();
await ETTask.CompletedTask;
}
}
}