You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
718 B

using System;
namespace ET
{
public class C2M_StartCuisineHandler: AMActorLocationRpcHandler<Unit, C2M_StartCuisine, M2C_StartCuisine>
{
protected override async ETTask Run(Unit unit, C2M_StartCuisine request, M2C_StartCuisine response, Action reply)
{
try
{
response.Error = CuisineOperate.StartCuisine(unit, request.Id, request.MaxAmount);
reply();
}
catch (Exception e)
{
response.Message = e.ToString();
response.Error = ErrorCode.ERR_OperateFail;
reply();
}
await ETTask.CompletedTask;
}
}
}