C2M_TestActorRequestHandler.cs 422 B

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