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
758 B
24 lines
758 B
using System; |
|
|
|
namespace ET |
|
{ |
|
[ActorMessageHandler] |
|
public class C2M_StartGatherResourceHandler: AMActorLocationRpcHandler<Unit, C2M_StartGatherResource, M2C_StartGatherResource> |
|
{ |
|
protected async override ETTask Run(Unit unit, C2M_StartGatherResource request, M2C_StartGatherResource response, Action reply) |
|
{ |
|
try |
|
{ |
|
response.Error=GatherOperate.StartGather(unit, request.GatherId, request.PeopleId); |
|
reply(); |
|
} |
|
catch (Exception e) |
|
{ |
|
response.Error = ErrorCode.ERR_BuildError; |
|
response.Message = e.Message; |
|
reply(); |
|
} |
|
await ETTask.CompletedTask; |
|
} |
|
} |
|
} |