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.
24 lines
717 B
24 lines
717 B
3 years ago
|
using System;
|
||
|
|
||
|
namespace ET
|
||
|
{
|
||
|
public class C2M_StopRecipeGameHandler:AMActorLocationRpcHandler<Unit, C2M_StopRecipeGame, M2C_StopRecipeGame>
|
||
|
{
|
||
|
protected override async ETTask Run(Unit unit, C2M_StopRecipeGame request, M2C_StopRecipeGame response, Action reply)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
(response.Error , response.MixtureId) = CuisineOperate.EndCuisine(unit, request.Result);
|
||
|
reply();
|
||
|
}
|
||
|
catch (Exception e)
|
||
|
{
|
||
|
response.Message = e.ToString();
|
||
|
response.Error = ErrorCode.ERR_CuisineError;
|
||
|
reply();
|
||
|
}
|
||
|
|
||
|
await ETTask.CompletedTask;
|
||
|
}
|
||
|
}
|
||
|
}
|