// Navigation wicoNavigation; void ModuleProgramInit() { // wicoTravelMovement = new TravelMovement(this); //OurName = ""; //moduleName += "\nOrbital V4"; //sVersion = "4"; wicoThrusters = new WicoThrusters(this); wicoGyros = new WicoGyros(this, null); wicoGasTanks = new GasTanks(this); wicoGasGens = new GasGens(this); wicoConnectors = new Connectors(this); wicoLandingGears = new LandingGears(this); wicoCameras = new Cameras(this); wicoParachutes = new Parachutes(this); wicoNavRotors = new NavRotors(this); wicoAntennas = new Antennas(this); wicoSensors = new Sensors(this, wicoBlockMaster.GetMainController()); wicoWheels = new Wheels(this); wicoEngines = new HydrogenEngines(this); wicoPower = new PowerProduction(this); wicoOrbitalLaunch = new OrbitalModes(this); // wicoNavigation = new Navigation(this, wicoBlockMaster.GetMainController()); }
// Navigation wicoNavigation; void ModuleProgramInit() { // wicoTravelMovement = new TravelMovement(this); wicoThrusters = new WicoThrusters(this); wicoGyros = new WicoGyros(this, null); wicoGasTanks = new GasTanks(this); wicoGasGens = new GasGens(this); wicoConnectors = new Connectors(this); wicoLandingGears = new LandingGears(this); wicoCameras = new Cameras(this); wicoParachutes = new Parachutes(this); wicoNavRotors = new NavRotors(this); wicoAntennas = new Antennas(this); wicoSensors = new Sensors(this, wicoBlockMaster.GetMainController()); wicoWheels = new Wheels(this); wicoOrbitalLaunch = new OrbitalModes(this); // wicoNavigation = new Navigation(this, wicoBlockMaster.GetMainController()); }
public Program() { MyIniParseResult result; if (!_CustomDataIni.TryParse(Me.CustomData, out result)) { Me.CustomData = ""; _CustomDataIni.Clear(); Echo(result.ToString()); //throw new Exception(result.ToString()); } if (!_SaveIni.TryParse(Storage, out result)) { Storage = ""; _SaveIni.Clear(); Echo(result.ToString()); // throw new Exception(result.ToString()); } wicoIGC = new WicoIGC(this); // Must be first as some use it in constructor wicoBlockMaster = new WicoBlockMaster(this); // must be before any other block-oriented modules wicoControl = new WicoControl(this); // wicoTravelMovement = new TravelMovement(this); wicoThrusters = new WicoThrusters(this); wicoGyros = new WicoGyros(this, null); wicoGasTanks = new GasTanks(this); wicoGasGens = new GasGens(this); wicoConnectors = new Connectors(this); wicoLandingGears = new LandingGears(this); wicoCameras = new Cameras(this); wicoParachutes = new Parachutes(this); wicoNavRotors = new NavRotors(this); wicoAntennas = new Antennas(this); wicoSensors = new Sensors(this, wicoBlockMaster.GetMainController()); wicoWheels = new Wheels(this); wicoOrbitalLaunch = new OrbitalModes(this); // wicoNavigation = new Navigation(this, wicoBlockMaster.GetMainController()); Runtime.UpdateFrequency |= UpdateFrequency.Once; // cause ourselves to run again to continue initialization // Local PB Surface Init mesurface0 = Me.GetSurface(0); mesurface1 = Me.GetSurface(1); mesurface0.ContentType = VRage.Game.GUI.TextPanel.ContentType.TEXT_AND_IMAGE; mesurface0.WriteText("Wicorel Modular"); mesurface0.FontSize = 2; mesurface0.Alignment = VRage.Game.GUI.TextPanel.TextAlignment.CENTER; mesurface1.ContentType = VRage.Game.GUI.TextPanel.ContentType.TEXT_AND_IMAGE; mesurface1.WriteText("Version: 1"); mesurface1.Alignment = VRage.Game.GUI.TextPanel.TextAlignment.CENTER; mesurface1.TextPadding = 0.25f; mesurface1.FontSize = 3.5f; if (!Me.Enabled) { Echo("I am turned OFF!"); } }