C2M_TestRequestHandler.cs 416 B

123456789101112131415
  1. using System;
  2. using ETModel;
  3. namespace ETHotfix
  4. {
  5. [ActorMessageHandler(AppType.Map)]
  6. public class C2M_TestRequestHandler : AMActorLocationRpcHandler<Unit, C2M_TestRequest, M2C_TestResponse>
  7. {
  8. protected override async ETTask Run(Unit unit, C2M_TestRequest message, Action<M2C_TestResponse> reply)
  9. {
  10. await ETTask.CompletedTask;
  11. reply(new M2C_TestResponse() {Response = "response actor rpc"});
  12. }
  13. }
  14. }