11using System ;
22using System . Linq ;
33using System . Collections . Generic ;
4-
54using UnityEngine ;
6-
75using Kopernicus . Components ;
86using Kopernicus . Configuration ;
9- using Kopernicus . OnDemand ;
107using Kopernicus ;
118
129
13-
1410namespace SigmaBinaryPlugin
1511{
16- [ ExternalParserTarget ( "Properties" ) ]
17- public class SigmaBinary : ExternalParserTargetLoader , IParserEventSubscriber
12+ [ ParserTargetExternal ( "Body" , "Properties" ) ]
13+ public class SigmaBinary : BaseLoader , IParserEventSubscriber
1814 {
1915
2016 public static List < Body > ListOfBodies = new List < Body > ( ) ;
@@ -37,8 +33,6 @@ public class SigmaBinary : ExternalParserTargetLoader, IParserEventSubscriber
3733 public static Dictionary < Body , EnumParser < OrbitRenderer . DrawIcons > > sigmabinaryIcon = new Dictionary < Body , EnumParser < OrbitRenderer . DrawIcons > > ( ) ;
3834
3935
40-
41-
4236 void IParserEventSubscriber . Apply ( ConfigNode node )
4337 {
4438 }
@@ -77,7 +71,6 @@ void IParserEventSubscriber.PostApply(ConfigNode node)
7771
7872
7973
80-
8174 /// Generating Binary System
8275
8376
@@ -104,7 +97,6 @@ void IParserEventSubscriber.PostApply(ConfigNode node)
10497
10598
10699
107-
108100 /// Set Barycenter
109101
110102 sbBarycenter . generatedBody . orbitDriver . orbit = new Orbit ( sbPrimary . generatedBody . orbitDriver . orbit ) ;
@@ -175,7 +167,6 @@ void IParserEventSubscriber.PostApply(ConfigNode node)
175167
176168
177169
178-
179170 /// Set Primary
180171
181172 if ( ! archivesFixerList . ContainsKey ( sbPrimary . name ) )
@@ -214,7 +205,6 @@ void IParserEventSubscriber.PostApply(ConfigNode node)
214205
215206
216207
217-
218208 /// Set Secondary Orbit
219209
220210 if ( sigmabinaryRedrawOrbit . Contains ( sbSecondary ) )
@@ -247,7 +237,6 @@ void IParserEventSubscriber.PostApply(ConfigNode node)
247237
248238
249239
250-
251240 /// Set SphereOfInfluence for Barycenter and Primary
252241
253242 if ( ! cbPrimary . Has ( "sphereOfInfluence" ) )
@@ -273,7 +262,6 @@ void IParserEventSubscriber.PostApply(ConfigNode node)
273262
274263
275264
276-
277265 /// Binary System Completed
278266
279267 ListOfBinaries . Remove ( ListOfBinaries . First ( x => x . Value == sbSecondary ) . Key ) ;
0 commit comments