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.
26 lines
759 B
26 lines
759 B
using System; |
|
|
|
namespace ET |
|
{ |
|
public class C2M_DevelopRecipeHandler: AMActorLocationRpcHandler<Unit, C2M_DevelopRecipe, M2C_DevelopRecipe> |
|
{ |
|
protected override async ETTask Run(Unit unit, C2M_DevelopRecipe request, M2C_DevelopRecipe response, Action reply) |
|
{ |
|
|
|
try |
|
{ |
|
(response.Error, response.Id) = CuisineOperate.DevelopRecipes(unit, request.Ids); |
|
reply(); |
|
} |
|
catch (Exception e) |
|
{ |
|
Log.Error(e.ToString()); |
|
response.Message = e.ToString(); |
|
response.Error = ErrorCode.ERR_OperateFail; |
|
reply(); |
|
} |
|
|
|
await ETTask.CompletedTask; |
|
} |
|
} |
|
} |