|
@@ -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]
|