C2M_TestActorRequestHandler.cs 467 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_TestActorRequestHandler : AMActorLocationRpcHandler<Unit, C2M_TestActorRequest, M2C_TestActorResponse>
  8. {
  9. protected override async Task Run(Unit unit, C2M_TestActorRequest message, Action<M2C_TestActorResponse> reply)
  10. {
  11. reply(new M2C_TestActorResponse(){Info = "actor rpc response"});
  12. await Task.CompletedTask;
  13. }
  14. }
  15. }