internal void Awake() { Debug.Log("ResourceRecovery Awake running"); vessel = FlightGlobals.ActiveVessel; RRSettings = RRSettingsController.getRRSettings(); FilePaths = RRSettingsController.getFilePaths(); //Scenario = (Scenario == null) ? new ScenarioNodeDatabase() : Scenario; Scenario = new ScenarioNodeDatabase(); Scenario.init(RRSettings, FilePaths); Scenario.open(); //RootNode = Scenario.get_RootNode(); Scenario.ValidateDatabaseForPlanetaryBody(); windows = new WindowsController(); windows.Awake(); windows.pass_Scenario(Scenario); Debug.Log("ResourceRecovery Awake Done"); }
internal void Awake() { Debug.Log("ResourceRecovery Awake running"); RRSettings = RRSettingsController.getRRSettings(); FilePaths = RRSettingsController.getFilePaths(); //RootNode = Utilities.openPersistenFile(); //Scenario = (Scenario == null) ? new ScenarioNodeDatabase() : Scenario; Scenario = new ScenarioNodeDatabase(); Scenario.init(RRSettings, FilePaths); Scenario.ValidateDatabaseForPlanetaryBody(); windows = new WindowsController(); windows.Awake(); windows.pass_Scenario(Scenario); Debug.Log("ResourceRecovery Awake Done"); }