void ModuleProgramInit() { wicoTravelMovement = new TravelMovement(this, _wicoControl); wicoThrusters = new WicoThrusters(this); wicoGyros = new WicoGyros(this, wicoBlockMaster); wicoGasTanks = new GasTanks(this, wicoBlockMaster); 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); wicoWheels = new Wheels(this); wicoNavigation = new Navigation(this, _wicoControl, wicoBlockMaster, wicoIGC, wicoTravelMovement, wicoGyros, wicoWheels, wicoNavRotors); _wicoControl.WantSlow(); // get updates so we can check for things like navigation commands in oldschool format /// DEBUG // wicoIGC.SetDebug(true); // _wicoControl.SetDebug(true); }
// 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()); }
void ModuleProgramInit() { wicoTravelMovement = new TravelMovement(this, _wicoControl); wicoThrusters = new WicoThrusters(this); wicoGyros = new WicoGyros(this, wicoBlockMaster); wicoGasTanks = new GasTanks(this, wicoBlockMaster); 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); wicoWheels = new Wheels(this); wicoEngines = new HydrogenEngines(this); wicoPower = new PowerProduction(this, wicoBlockMaster); wicoTimers = new Timers(this, wicoBlockMaster); // navRemote = new NavRemote(this); // navCommon = new NavCommon(this); _wicoDisplays = new Displays(this, wicoBlockMaster, wicoElapsedTime); _cargoCheck = new CargoCheck(this, wicoBlockMaster, _wicoDisplays); wicoBases = new WicoBases(this, wicoIGC, _wicoDisplays); wicoNavigation = new Navigation(this, _wicoControl, wicoBlockMaster, wicoIGC, wicoTravelMovement, wicoElapsedTime, wicoGyros, wicoWheels, wicoNavRotors, wicoThrusters, _wicoDisplays); spaceDock = new SpaceDock(this, _wicoControl, wicoBlockMaster, wicoThrusters, wicoConnectors , wicoAntennas, wicoGasTanks, wicoGyros, wicoPower, wicoTimers , wicoIGC, wicoBases, wicoNavigation, _cargoCheck, _wicoDisplays); _wicoControl.WantSlow(); // get updates so we can check for things like navigation commands in oldschool format /// DEBUG // wicoIGC.SetDebug(true); // _wicoControl.SetDebug(true); // wicoElapsedTime.SetDebug(true); }
void ModuleProgramInit() { // wicoTravelMovement = new TravelMovement(this); //OurName = ""; //moduleName += "\nOrbital V4"; //sVersion = "4"; wicoThrusters = new WicoThrusters(this, wicoBlockMaster); wicoGyros = new WicoGyros(this, wicoBlockMaster); wicoGasTanks = new GasTanks(this, wicoBlockMaster); 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); wicoWheels = new Wheels(this); wicoEngines = new HydrogenEngines(this); wicoPower = new PowerProduction(this, wicoBlockMaster); wicoTimers = new Timers(this, wicoBlockMaster); _displays = new Displays(this, wicoBlockMaster, wicoElapsedTime); wicoBases = new WicoBases(this, wicoIGC, _displays); // navRemote = new NavRemote(this); navCommon = new NavCommon(this); _cargoCheck = new CargoCheck(this, wicoBlockMaster, _displays); spaceDock = new SpaceDock(this, _wicoControl, wicoBlockMaster, wicoThrusters, wicoConnectors, wicoAntennas, wicoGasTanks, wicoGyros, wicoPower, wicoTimers, wicoIGC, wicoBases, navCommon, _cargoCheck , _displays); //wicoOrbitalLaunch = new OrbitalModes(this); // wicoNavigation = new Navigation(this, wicoBlockMaster.GetMainController()); /// DEBUG // wicoIGC.SetDebug(true); // _wicoControl.SetDebug(true); // wicoElapsedTime.SetDebug(true); }
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!"); } }
static void Main(string[] args) { //personnel Data Personnel personnel = new Personnel(); Corporate corporate = new Corporate(); Managment managment = new Managment(); LowerEnlisted lowerEnlisted = new LowerEnlisted(); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.WriteLine("Airborne Ops Data\n"); Thread.Sleep(1000); personnel.NumberOfPersonnel(150); corporate.NumberOfPersonnel(15); managment.NumberOfPersonnel(45); lowerEnlisted.NumberOfPersonnel(90); Console.ReadKey(); Console.Clear(); //Transportation data Transportation transportation = new Transportation(); Aircraft aircraft = new Aircraft(); Vehicles vehicles = new Vehicles(); Thread.Sleep(1000); transportation.NumberOfTrans(12); aircraft.NumberOfTrans(4); aircraft.NumberOfAirCrafts(2, "C-130"); aircraft.NumberOfAirCrafts(2, "C-17"); Thread.Sleep(1000); vehicles.NumberOfTrans(8); vehicles.NumberOfVehicles(3, "HMMVVs"); vehicles.NumberOfVehicles(5, "LMTVs"); Console.ReadKey(); Console.Clear(); //parachute data Parachutes parachutes = new Parachutes(); PersonnelParachutes peopleChutes = new PersonnelParachutes(); Cargo cargo = new Cargo(); parachutes.TotalNumberOfParachutes(6000); peopleChutes.TotalNumberOfParachutes(5500); peopleChutes.PeopleParachutes(1200, "T-10s"); peopleChutes.PeopleParachutes(1150, "T-11M"); peopleChutes.PeopleParachutes(3150, "T-11R"); Thread.Sleep(1000); cargo.TotalNumberOfParachutes(500); cargo.HeavyRigParachutes(125, "G-11B"); cargo.HeavyRigParachutes(135, "G-12"); cargo.HeavyRigParachutes(240, "G-14"); Console.ReadKey(); }