22 lines
672 B
C#
22 lines
672 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)
|
|||
|
{
|
|||
|
var 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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|