C2M_TestRequestHandler.cs 414 B

12345678910111213141516
  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, M2C_TestResponse response, Action reply)
  9. {
  10. response.Response = "response actor rpc";
  11. reply();
  12. await ETTask.CompletedTask;
  13. }
  14. }
  15. }