Added Isp, Mass & Thrust to Flight Engineer.
[VesselSimulator.git] / KerbalEngineer / Flight / Readouts / Vessel / Mass.cs
blob:a/KerbalEngineer/Flight/Readouts/Vessel/Mass.cs -> blob:b/KerbalEngineer/Flight/Readouts/Vessel/Mass.cs
--- a/KerbalEngineer/Flight/Readouts/Vessel/Mass.cs
+++ b/KerbalEngineer/Flight/Readouts/Vessel/Mass.cs
@@ -1,1 +1,37 @@
-
+// Project:	KerbalEngineer

+// Author:	CYBUTEK

+// License:	Attribution-NonCommercial-ShareAlike 3.0 Unported

+

+#region Using Directives

+

+using KerbalEngineer.Extensions;

+using KerbalEngineer.Simulation;

+

+#endregion

+

+namespace KerbalEngineer.Flight.Readouts.Vessel

+{

+    public class Mass : ReadoutModule

+    {

+        public Mass()

+        {

+            this.Name = "Mass";

+            this.Category = ReadoutCategory.Vessel;

+        }

+

+        public override void Update()

+        {

+            SimulationManager.Instance.RequestSimulation();

+        }

+

+        public override void Draw()

+        {

+            this.DrawLine(SimulationManager.Instance.LastStage.Mass.ToMass(false) + " / " + SimulationManager.Instance.LastStage.TotalMass.ToMass());

+        }

+

+        public override void Reset()

+        {

+            FlightEngineerCore.Instance.AddUpdatable(SimulationManager.Instance);

+        }

+    }

+}