Added IsDefault readout property.
[VesselSimulator.git] / KerbalEngineer / Flight / Readouts / Vessel / SpecificImpulse.cs
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
// Project:  KerbalEngineer
// Author:      CYBUTEK
// License:     Attribution-NonCommercial-ShareAlike 3.0 Unported
 
#region Using Directives
 
using KerbalEngineer.Simulation;
 
#endregion
 
namespace KerbalEngineer.Flight.Readouts.Vessel
{
    public class SpecificImpulse : ReadoutModule
    {
        public SpecificImpulse()
        {
            this.Name = "Specific Impulse";
            this.Category = ReadoutCategory.Vessel;
            this.HelpString = string.Empty;
            this.IsDefault = true;
        }
 
        public override void Update()
        {
            SimManager.RequestUpdate();
        }
 
        public override void Draw()
        {
            this.DrawLine(SimManager.LastStage.isp.ToString("F1") + "s");
        }
 
        public override void Reset()
        {
            FlightEngineerCore.Instance.AddUpdatable(SimManager.Instance);
        }
    }
}