Skip to content

Commit

Permalink
Move MJLib.Statics up a level for convenience
Browse files Browse the repository at this point in the history
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
  • Loading branch information
lamont-granquist committed Aug 31, 2023
1 parent f673b88 commit 4806676
Show file tree
Hide file tree
Showing 79 changed files with 356 additions and 352 deletions.
2 changes: 1 addition & 1 deletion MechJeb2/GLUtils.cs
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using UnityEngine;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MuMech
{
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/Maneuver/OperationAdvancedTransfer.cs
Expand Up @@ -3,7 +3,7 @@
using JetBrains.Annotations;
using KSP.Localization;
using UnityEngine;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using Object = UnityEngine.Object;

namespace MuMech
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/Maneuver/OperationEllipticize.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using JetBrains.Annotations;
using KSP.Localization;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MuMech
{
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/Maneuver/OperationPeriapsis.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using JetBrains.Annotations;
using KSP.Localization;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MuMech
{
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/Maneuver/OperationSemiMajor.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using JetBrains.Annotations;
using KSP.Localization;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MuMech
{
Expand Down
486 changes: 243 additions & 243 deletions MechJeb2/MechJeb2.csproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Control/PIDLoop.cs
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: LicenseRef-PD-hp OR Unlicense OR CC0-1.0 OR 0BSD OR MIT-0 OR MIT OR LGPL-2.1+
*/

using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

#nullable enable
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Core/BrentMin.cs
Expand Up @@ -4,7 +4,7 @@
*/

using System;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

#nullable enable
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Core/BrentRoot.cs
Expand Up @@ -7,7 +7,7 @@

using System;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

// ReSharper disable CompareOfFloatsByEqualityOperator
Expand Down
Expand Up @@ -5,7 +5,7 @@

using System;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Core/Functions/Angles.cs
Expand Up @@ -7,7 +7,7 @@
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

#nullable enable
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Core/Gooding.cs
Expand Up @@ -6,7 +6,7 @@
using System;
using MechJebLib.Primitives;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

// ReSharper disable InconsistentNaming
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Core/Maths.cs
Expand Up @@ -7,7 +7,7 @@
using MechJebLib.Core.FunctionImpls;
using MechJebLib.Core.Functions;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

#nullable enable
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs
Expand Up @@ -7,7 +7,7 @@
using System.Collections.Generic;
using System.Threading;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs
Expand Up @@ -9,7 +9,7 @@
using System.Collections.Generic;
using JetBrains.Annotations;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

namespace MechJebLib.Core.ODE
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Core/TwoBody/Farnocchia.cs
Expand Up @@ -9,7 +9,7 @@
using MechJebLib.Core.Functions;
using MechJebLib.Primitives;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MechJebLib.Core.TwoBody
{
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs
Expand Up @@ -6,7 +6,7 @@
using System;
using MechJebLib.Core;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

#nullable enable
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs
Expand Up @@ -10,7 +10,7 @@
using MechJebLib.Core;
using MechJebLib.Core.TwoBody;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

namespace MechJebLib.Maneuvers
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Maneuvers/Simple.cs
Expand Up @@ -3,7 +3,7 @@
using MechJebLib.Primitives;
using MechJebLib.Utils;
using static System.Math;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MechJebLib.Maneuvers
{
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/Ascent.cs
Expand Up @@ -9,7 +9,7 @@
using System.Collections.Generic;
using MechJebLib.Core;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

namespace MechJebLib.PVG
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/AscentBuilder.cs
Expand Up @@ -6,7 +6,7 @@
using System.Collections.Generic;
using MechJebLib.Primitives;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/Optimizer.cs
Expand Up @@ -9,7 +9,7 @@
using System.Collections.Generic;
using System.Threading;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

namespace MechJebLib.PVG
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/Phase.cs
Expand Up @@ -7,7 +7,7 @@
using MechJebLib.Primitives;
using MechJebLib.PVG.Integrators;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

#nullable enable
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/Solution.cs
Expand Up @@ -10,7 +10,7 @@
using System.Text;
using MechJebLib.Core;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

namespace MechJebLib.PVG
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs
Expand Up @@ -5,7 +5,7 @@

using System;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs
Expand Up @@ -6,7 +6,7 @@
using System;
using MechJebLib.Core;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
Expand Up @@ -6,7 +6,7 @@
using System;
using MechJebLib.Primitives;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
Expand Up @@ -6,7 +6,7 @@
using System;
using MechJebLib.Primitives;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
Expand Up @@ -6,7 +6,7 @@
using System;
using MechJebLib.Core;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs
Expand Up @@ -6,7 +6,7 @@
using System;
using MechJebLib.Core;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs
Expand Up @@ -6,7 +6,7 @@
using System;
using MechJebLib.Core;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs
Expand Up @@ -6,7 +6,7 @@
using System;
using MechJebLib.Core;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Primitives/Q3.cs
Expand Up @@ -5,7 +5,7 @@

using System;
using System.Globalization;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

#nullable enable
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Primitives/V3.cs
Expand Up @@ -7,7 +7,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

#nullable enable
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Primitives/Vn.cs
Expand Up @@ -9,7 +9,7 @@
using System.Collections;
using System.Collections.Generic;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

// ReSharper disable InconsistentNaming
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs
Expand Up @@ -2,7 +2,7 @@

using System.Collections.Generic;
using MechJebLib.Simulations.PartModules;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MechJebLib.Simulations
{
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs
Expand Up @@ -5,7 +5,7 @@
using System.Runtime.CompilerServices;
using MechJebLib.Simulations.PartModules;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

namespace MechJebLib.Simulations
Expand Down
Expand Up @@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using MechJebLib.Primitives;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
Expand Up @@ -4,7 +4,7 @@
using System.Runtime.CompilerServices;
using MechJebLib.Primitives;
using MechJebLib.Utils;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MechJebLib.Simulations.PartModules
{
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Simulations/SimResource.cs
@@ -1,4 +1,4 @@
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs
Expand Up @@ -8,7 +8,7 @@
using MechJebLib.Simulations.PartModules;
using MuMech;
using UnityEngine;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MechJebLib.Simulations
{
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs
Expand Up @@ -7,7 +7,7 @@
using MechJebLib.Simulations.PartModules;
using MuMech;
using UnityEngine;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;
using static System.Math;

namespace MechJebLib.Simulations
Expand Down
Expand Up @@ -11,9 +11,10 @@
using System.Runtime.CompilerServices;
using System.Text;
using MechJebLib.Primitives;
using MechJebLib.Utils;
using static System.Math;

namespace MechJebLib.Utils
namespace MechJebLib
{
/// <summary>
/// Static class for helpers which are common enough that they're used as syntactic sugar.
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Utils/BackgroundJob.cs
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

namespace MechJebLib.Utils
{
Expand Down
2 changes: 1 addition & 1 deletion MechJeb2/MechJebLib/Utils/Check.cs
Expand Up @@ -7,7 +7,7 @@
using System.Collections.Generic;
using System.Diagnostics;
using MechJebLib.Primitives;
using static MechJebLib.Utils.Statics;
using static MechJebLib.Statics;

#nullable enable

Expand Down

0 comments on commit 4806676

Please sign in to comment.