using Cysharp.Threading.Tasks; using KYFramework; using KYFramework.Network; namespace SimulationServer; [MessageHandler] public class C2S_SimulationResultMessageHandler : AMRpcHandler { protected override UniTask Run(Session session, C2S_SimulationResult message, S2C_SimulatinResult response, Action reply) { //FlyComponent flyComponent = Game.Scene.GetComponent(); // response = new S2C_SimulatinResult(); // // response.TaskResponseTime = flyComponent.Result.TaskResponseTime; // response.TaskTotalTime = flyComponent.Result.TaskTotalTime; // response.SingleJoinTime = flyComponent.Result.SingleJoinTime; // response.SingleEffectiveTaskTime = flyComponent.Result.SingleEffectiveTaskTime; // // response.SingleAllPeopeo = flyComponent.Result.SingleAll_Peopeo; // response.SingleEachPeople = flyComponent.Result.SingleEach_People; // response.SpeedPatrol = flyComponent.Result.Speed_Patrol; // response.VoyagePatrol = flyComponent.Result.Voyage_Patrol; // response.TimeAllPatrol = flyComponent.Result.Time_AllPatrol; // response.FireJoinTime = flyComponent.Result.FireJoinTime; // response.FuelSingle = flyComponent.Result.Fuel_Single; // response.AirportUseSituation = flyComponent.Result.AirportUseSituation; // response.NavUseSituation = flyComponent.Result.NavUseSituation; // // response.FireJoinTimeEconomical = flyComponent.Result.FireJoinTime_Economical; // response.FuelSingleEconomical = flyComponent.Result.Fuel_Single_Economical; // response.AirportUseSituationEconomical = flyComponent.Result.AirportUseSituation_Economical; // response.NavUseSituationEconomical = flyComponent.Result.NavUseSituation_Economical; reply(); return UniTask.CompletedTask; } }