C2M_ReloadHandler.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using ETModel;
  3. namespace ETHotfix
  4. {
  5. //[MessageHandler(AppType.Manager)]
  6. //public class C2M_ReloadHandler: AMRpcHandler<C2M_Reload, M2C_Reload>
  7. //{
  8. // protected override async void Run(Session session, C2M_Reload message, Action<M2C_Reload> reply)
  9. // {
  10. // M2C_Reload response = new M2C_Reload();
  11. // try
  12. // {
  13. // StartConfigComponent startConfigComponent = Game.Scene.GetComponent<StartConfigComponent>();
  14. // NetInnerComponent netInnerComponent = Game.Scene.GetComponent<NetInnerComponent>();
  15. // foreach (StartConfig startConfig in startConfigComponent.GetAll())
  16. // {
  17. // if (!message.AppType.Is(startConfig.AppType))
  18. // {
  19. // continue;
  20. // }
  21. // InnerConfig innerConfig = startConfig.GetComponent<InnerConfig>();
  22. // Session serverSession = netInnerComponent.Get(innerConfig.IPEndPoint);
  23. // await serverSession.Call(new M2A_Reload());
  24. // }
  25. // reply(response);
  26. // }
  27. // catch (Exception e)
  28. // {
  29. // ReplyError(response, e, reply);
  30. // }
  31. // }
  32. //}
  33. }