Included 0.6.2.4 vessel simulation.
[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
// 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;
        }
 
        public override void Update()
        {
            SimulationManager.Instance.RequestSimulation();
        }
 
        public override void Draw()
        {
            this.DrawLine(SimulationManager.Instance.LastStage.isp.ToString("F1") + "s");
        }
 
        public override void Reset()
        {
            FlightEngineerCore.Instance.AddUpdatable(SimulationManager.Instance);
        }
    }
}