コード例 #1
0
        public DeltaVCalc GetStageDV(ScalarValue stageNum)
        {
            int clampedStageNum = Math.Min(Vessel.currentStage, Math.Max(0, (int)stageNum.ToPrimitive()));

            return(new DeltaVCalc(Shared, Vessel.VesselDeltaV.GetStage(clampedStageNum)));
        }