C2S_SimulationResultMessageHandler.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Cysharp.Threading.Tasks;
  2. using KYFramework;
  3. using KYFramework.Network;
  4. namespace SimulationServer;
  5. [MessageHandler]
  6. public class C2S_SimulationResultMessageHandler : AMRpcHandler<C2S_SimulationResult,S2C_SimulatinResult>
  7. {
  8. protected override UniTask Run(Session session, C2S_SimulationResult message, S2C_SimulatinResult response, Action reply)
  9. {
  10. //FlyComponent flyComponent = Game.Scene.GetComponent<FlyComponent>();
  11. // response = new S2C_SimulatinResult();
  12. //
  13. // response.TaskResponseTime = flyComponent.Result.TaskResponseTime;
  14. // response.TaskTotalTime = flyComponent.Result.TaskTotalTime;
  15. // response.SingleJoinTime = flyComponent.Result.SingleJoinTime;
  16. // response.SingleEffectiveTaskTime = flyComponent.Result.SingleEffectiveTaskTime;
  17. //
  18. // response.SingleAllPeopeo = flyComponent.Result.SingleAll_Peopeo;
  19. // response.SingleEachPeople = flyComponent.Result.SingleEach_People;
  20. // response.SpeedPatrol = flyComponent.Result.Speed_Patrol;
  21. // response.VoyagePatrol = flyComponent.Result.Voyage_Patrol;
  22. // response.TimeAllPatrol = flyComponent.Result.Time_AllPatrol;
  23. // response.FireJoinTime = flyComponent.Result.FireJoinTime;
  24. // response.FuelSingle = flyComponent.Result.Fuel_Single;
  25. // response.AirportUseSituation = flyComponent.Result.AirportUseSituation;
  26. // response.NavUseSituation = flyComponent.Result.NavUseSituation;
  27. //
  28. // response.FireJoinTimeEconomical = flyComponent.Result.FireJoinTime_Economical;
  29. // response.FuelSingleEconomical = flyComponent.Result.Fuel_Single_Economical;
  30. // response.AirportUseSituationEconomical = flyComponent.Result.AirportUseSituation_Economical;
  31. // response.NavUseSituationEconomical = flyComponent.Result.NavUseSituation_Economical;
  32. reply();
  33. return UniTask.CompletedTask;
  34. }
  35. }