Skip to content

Commit f37aefe

Browse files
JonnyOThanvanillamcclaude
authored
Reflection removal (#173)
Co-authored-by: Bryan <brobbins1995@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9638101 commit f37aefe

8 files changed

Lines changed: 351 additions & 2454 deletions

File tree

MechJebRPM/MechJebProxy.cs

Lines changed: 239 additions & 2364 deletions
Large diffs are not rendered by default.

MechJebRPM/MechJebRPM.cs

Lines changed: 101 additions & 84 deletions
Large diffs are not rendered by default.

MechJebRPM/MechJebRPM.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
<CKANIdentifier>MechJeb2</CKANIdentifier>
1414
<KSPAssemblyVersion>2.5</KSPAssemblyVersion>
1515
</Reference>
16+
<Reference Include="MechJebLib">
17+
<HintPath>$(KSPRoot)\GameData\MechJeb2\Plugins\MechJebLib.dll</HintPath>
18+
<Private>False</Private>
19+
</Reference>
1620
<ProjectReference Include="..\RasterPropMonitor\RasterPropMonitor.csproj">
1721
<Name>RasterPropMonitor</Name>
1822
<!-- this isn't working yet, not sure why. It's meant to add the ksp assembly dependency attribute, but we'll just do it manually for now
@@ -24,6 +28,7 @@
2428
<ItemGroup>
2529
<Publicize Include="Assembly-CSharp" />
2630
<Publicize Include="MechJeb2" />
31+
<Publicize Include="MechJebLib" />
2732
</ItemGroup>
2833
<ItemGroup>
2934
<PackageReference Include="KSPBuildTools" Version="0.0.4" />

RasterPropMonitor/Auxiliary modules/JSINumericInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
namespace JSI
2727
{
28-
public class JSINumericInput : InternalModule
28+
class JSINumericInput : InternalModule
2929
{
3030
[SerializeReference] ConfigNodeHolder moduleConfig;
3131

RasterPropMonitor/Handlers/JSIGraphingBackground.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace JSI
2626
{
2727
// JSIGraphingBackground provides an editable / configurable way to render
2828
// one or more data in a graphical manner.
29-
public class JSIGraphingBackground : InternalModule
29+
class JSIGraphingBackground : InternalModule
3030
{
3131
[KSPField]
3232
public string layout = null;

RasterPropMonitor/Handlers/JSIHeadsUpDisplay.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace JSI
3131
* are displayed with a "ladder" (texture). Strips also provide heading
3232
* information.
3333
************************************************************************/
34-
public class JSIHeadsUpDisplay : InternalModule
34+
class JSIHeadsUpDisplay : InternalModule
3535
{
3636
[KSPField]
3737
public string cameraTransform = string.Empty;

RasterPropMonitor/Handlers/JSISASMenu.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private static VesselAutopilot.AutopilotMode ConvertMode(VesselAutopilot.Autopil
7070
}
7171
}
7272

73-
public class JSISASMenu : InternalModule
73+
class JSISASMenu : InternalModule
7474
{
7575
[KSPField]
7676
public string pageTitle = string.Empty;

RasterPropMonitor/Handlers/JSIScienceDisplay.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
namespace JSI
99
{
10-
public class ExperimentDetailsMenu : TextMenu
10+
class ExperimentDetailsMenu : TextMenu
1111
{
1212
public ExperimentDetailsMenu(ModuleScienceExperiment experimentModule)
1313
{
@@ -103,7 +103,7 @@ static void AddMessageChunk(string message, StringBuilder stringBuilder, ref int
103103
}
104104
}
105105

106-
public class JSIScienceDisplay : InternalModule
106+
class JSIScienceDisplay : InternalModule
107107
{
108108
[KSPField]
109109
public string pageTitle;

0 commit comments

Comments
 (0)