Parcourir la source

优化医疗子任务飞机脚本

liyang il y a 3 mois
Parent
commit
976066f773

BIN
KYFramework/bin/Debug/net7.0/KYFramework.dll


BIN
KYFramework/bin/Debug/net7.0/KYFramework.pdb


BIN
KYFramework/bin/Debug/net7.0/ThirdParty.dll


BIN
KYFramework/bin/Debug/net7.0/ThirdParty.pdb


+ 0 - 44
SimulationServer/Entity/AircraftXCJJ.cs

@@ -14,16 +14,10 @@ public class AircraftXCJJ : AircraftEntity
     public bool IsOver;
     public bool Success;
     public TaskParameter taskParameter;
-    public GetNCData getNCData;
-    public double resulttime;
     public MissionEndPoint hospitalPoint;
 
     public List<double> jiuzhuTimes = new List<double>();
 
-    public bool isReadNC;
-
-    Text_readNC text_ReadNC;
-
     public override void End()
     {
         TotalFuelConsumption = TurningPoints[0].RemainingFuel - TurningPoints[^1].RemainingFuel;
@@ -267,24 +261,6 @@ public class AircraftXCJJ : AircraftEntity
         }
     }
 
-    // 吊运函数
-    public static handling_result get_result_time_rope(double H, int person_number, double windspeed, double vis, double upspeed, double downspeed)
-    {
-
-        handling_result result = new handling_result();
-
-        if (windspeed < 8 && vis > 3)
-        {
-            result.time = (person_number * H) / downspeed + (person_number * H) / upspeed;
-            result.success = true;
-        }
-        else
-        {
-            result.success = false;
-        }
-        return result;
-    }
-
     public string TargetQiXiangInfoSave(string s, int hour)
     {
         string result = hour.ToString() + "-" + s;
@@ -315,26 +291,6 @@ public class AircraftXCJJ : AircraftEntity
         }
         return result;
     }
-
-    public static int GetDaysInYear(int year, int month, int day)
-    {
-        int[] daysInMonths = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
-        if (IsLeapYear(year))
-        {
-            daysInMonths[1] = 29;
-        }
-        int days = day;
-        for (int i = 0; i < month - 1; i++)
-        {
-            days += daysInMonths[i];
-        }
-        return days;
-    }
-
-    public static bool IsLeapYear(int year)
-    {
-        return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0);
-    }
 }
 
 [ObjectSystem]

+ 0 - 44
SimulationServer/Entity/AircraftYLWPYS.cs

@@ -14,12 +14,6 @@ public class AircraftYLWPYS : AircraftEntity
     public bool IsOver;
     public bool Success;
     public TaskParameter taskParameter;
-    public GetNCData getNCData;
-    public double resulttime;
-
-    public bool isReadNC;
-
-    Text_readNC text_ReadNC;
 
     public override void End()
     {
@@ -64,24 +58,6 @@ public class AircraftYLWPYS : AircraftEntity
         End();
     }
 
-    // 吊运函数
-    public static handling_result get_result_time_rope(double H, int person_number, double windspeed, double vis, double upspeed, double downspeed)
-    {
-
-        handling_result result = new handling_result();
-
-        if (windspeed < 8 && vis > 3)
-        {
-            result.time = (person_number * H) / downspeed + (person_number * H) / upspeed;
-            result.success = true;
-        }
-        else
-        {
-            result.success = false;
-        }
-        return result;
-    }
-
     public string TargetQiXiangInfoSave(string s, int hour)
     {
         string result = hour.ToString() + "-" + s;
@@ -112,26 +88,6 @@ public class AircraftYLWPYS : AircraftEntity
         }
         return result;
     }
-
-    public static int GetDaysInYear(int year, int month, int day)
-    {
-        int[] daysInMonths = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
-        if (IsLeapYear(year))
-        {
-            daysInMonths[1] = 29;
-        }
-        int days = day;
-        for (int i = 0; i < month - 1; i++)
-        {
-            days += daysInMonths[i];
-        }
-        return days;
-    }
-
-    public static bool IsLeapYear(int year)
-    {
-        return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0);
-    }
 }
 
 [ObjectSystem]

+ 0 - 44
SimulationServer/Entity/AircraftYLZY.cs

@@ -14,12 +14,6 @@ public class AircraftYLZY : AircraftEntity
     public bool IsOver;
     public bool Success;
     public TaskParameter taskParameter;
-    public GetNCData getNCData;
-    public double resulttime;
-
-    public bool isReadNC;
-
-    Text_readNC text_ReadNC;
 
     public MissionEndPoint hospitalPoint;
 
@@ -244,24 +238,6 @@ public class AircraftYLZY : AircraftEntity
         }
     }
 
-    // 吊运函数
-    public static handling_result get_result_time_rope(double H, int person_number, double windspeed, double vis, double upspeed, double downspeed)
-    {
-
-        handling_result result = new handling_result();
-
-        if (windspeed < 8 && vis > 3)
-        {
-            result.time = (person_number * H) / downspeed + (person_number * H) / upspeed;
-            result.success = true;
-        }
-        else
-        {
-            result.success = false;
-        }
-        return result;
-    }
-
     public string TargetQiXiangInfoSave(string s, int hour)
     {
         string result = hour.ToString() + "-" + s;
@@ -292,26 +268,6 @@ public class AircraftYLZY : AircraftEntity
         }
         return result;
     }
-
-    public static int GetDaysInYear(int year, int month, int day)
-    {
-        int[] daysInMonths = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
-        if (IsLeapYear(year))
-        {
-            daysInMonths[1] = 29;
-        }
-        int days = day;
-        for (int i = 0; i < month - 1; i++)
-        {
-            days += daysInMonths[i];
-        }
-        return days;
-    }
-
-    public static bool IsLeapYear(int year)
-    {
-        return (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0);
-    }
 }
 
 [ObjectSystem]

BIN
SimulationServer/bin/Debug/net7.0/KYFramework.dll


BIN
SimulationServer/bin/Debug/net7.0/KYFramework.pdb


BIN
SimulationServer/bin/Debug/net7.0/KYNetwork.dll


BIN
SimulationServer/bin/Debug/net7.0/KYNetwork.pdb


BIN
SimulationServer/bin/Debug/net7.0/SimulationCommon.dll


BIN
SimulationServer/bin/Debug/net7.0/SimulationCommon.pdb


BIN
SimulationServer/bin/Debug/net7.0/SimulationServer.dll


BIN
SimulationServer/bin/Debug/net7.0/SimulationServer.exe


BIN
SimulationServer/bin/Debug/net7.0/SimulationServer.pdb


BIN
SimulationServer/bin/Debug/net7.0/ThirdParty.dll


BIN
SimulationServer/bin/Debug/net7.0/ThirdParty.pdb


BIN
ThirdParty/bin/Debug/net7.0/ThirdParty.dll


BIN
ThirdParty/bin/Debug/net7.0/ThirdParty.pdb