C2M_TestRequestHandler.cs 446 B

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