Overhauled Flight Engineer
[VesselSimulator.git] / KerbalEngineer / TotalMass.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
// Project:  KerbalEngineer
// Author:      CYBUTEK
// License:     Attribution-NonCommercial-ShareAlike 3.0 Unported
 
#region Using Directives
 
using KerbalEngineer.Extensions;
using KerbalEngineer.Simulation;
 
#endregion
 
namespace KerbalEngineer.FlightEngineer.Vessel
{
    public class TotalMass : Readout
    {
        protected override void Initialise()
        {
            this.Name = "Total Mass";
            this.Description = "Shows the total mass for the vessel.";
            this.Category = ReadoutCategory.Vessel;
        }
 
        public override void Update()
        {
            SimulationManager.RequestSimulation();
        }
 
        public override void Draw()
        {
            this.DrawLine(SimulationManager.LastStage.TotalMass.ToMass());
        }
    }
}