12 changed files with 160 additions and 25 deletions
@ -0,0 +1,24 @@ |
|||||||
|
using System; |
||||||
|
namespace ET |
||||||
|
{ |
||||||
|
public class C2M_ConstructFinishHandler: AMActorLocationRpcHandler<Unit, C2M_ConstructFinish, M2C_ConstructFinish> |
||||||
|
{ |
||||||
|
protected async override ETTask Run(Unit unit, C2M_ConstructFinish request, M2C_ConstructFinish response, Action reply) |
||||||
|
{ |
||||||
|
try |
||||||
|
{ |
||||||
|
ConstructOperate.ConstructFinish(unit, request.ConstructId); |
||||||
|
response.Error = ErrorCode.ERR_Success; |
||||||
|
reply(); |
||||||
|
} |
||||||
|
catch (Exception e) |
||||||
|
{ |
||||||
|
response.Message = e.ToString(); |
||||||
|
response.Error = ErrorCode.ERR_OperateFail; |
||||||
|
reply(); |
||||||
|
} |
||||||
|
|
||||||
|
await ETTask.CompletedTask; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue