forked from SodiumEyes/AmpYear
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathEngineerReport.cs
More file actions
53 lines (47 loc) · 1.57 KB
/
EngineerReport.cs
File metadata and controls
53 lines (47 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System.Collections.Generic;
namespace AY
{
public class AYEngReport : PreFlightTests.DesignConcernBase
{
// Is the Test OK ?
public override bool TestCondition()
{
RSTUtils.Utilities.Log_Debug("AYEngReport Test condition");
if (AYController.Instance.TotalPowerDrain > AYController.Instance.TotalPowerProduced)
{
RSTUtils.Utilities.Log_Debug("AYEngReport Total Power Drain > total Power Produced");
return false;
}
else
{
RSTUtils.Utilities.Log_Debug("AYEngReport Total Power Drain <= total Power Produced");
return true;
}
}
// List of affected parts
public override List<Part> GetAffectedParts()
{
return AYController.Instance.crewablePartList;
}
// Title of the problem description
public override string GetConcernTitle()
{
return "AmpYear";
}
// problem description
public override string GetConcernDescription()
{
return "Your Vessel will consume more ElectricCharge than it can Produce.";
}
// how bad is the problem
public override PreFlightTests.DesignConcernSeverity GetSeverity()
{
return PreFlightTests.DesignConcernSeverity.NOTICE;
}
// does it applies to Rocket, plane or both
public override EditorFacilities GetEditorFacilities()
{
return EditorFacilities.ALL;
}
}
}