public Program()
        {
            blockListManager = new BlockNameConverter(GridTerminalSystem);

            blockListManager.AppendBlocksFromCustomNames(exteriorDoorNames, exteriorDoorList);
            blockListManager.AppendBlocksFromGroupNames(hangerDoorGroupNames, exteriorDoorList);
            blockListManager.AppendBlocksFromCustomNames(interiorDoorNames, interiorDoorList);
            blockListManager.AppendBlocksFromCustomNames(airVentToO2GenNames, airVentToO2GenList);
            blockListManager.AppendBlocksFromCustomNames(airVentToO2TankNames, airVentToO2TankList);
            blockListManager.AppendBlocksFromCustomNames(O2TankNames, o2TankList);

            gasTanksManager = new GasTanksManager(o2TankList);
            gasTanksManager.SetStatusReport(statusReport);
            hangerPressureController = new PressurizedAreaController(exteriorDoorList, interiorDoorList, airVentToO2TankList, airVentToO2GenList, gasTanksManager, null, statusReport);

            Runtime.UpdateFrequency = UpdateFrequency.Update100;
        }
Exemple #2
0
        public void Main(string argument)
        {
            blockListManager = new BlockNameConverter(GridTerminalSystem);

            blockListManager.AppendBlocksFromCustomNames(doorNames, doorList);

            foreach (IMyDoor door in doorList)
            {
                Echo(door.CustomName);
            }

            blockListManager.AppendBlocksFromGroupNames(doorGroupNames, doorList);
            foreach (IMyDoor door in doorList)
            {
                Echo(door.CustomName);
            }
        }
Exemple #3
0
        public Program()
        {
            blockNameConverter = new BlockNameConverter(GridTerminalSystem);

            blockNameConverter.AppendBlocksFromCustomNames(nameAirVentsToGens, listAirVentsToGens);
            blockNameConverter.AppendBlocksFromCustomNames(nameAirVentsToTanks, listAIrVentsToTanks);
            blockNameConverter.AppendBlocksFromCustomNames(nameAirTanks, listAirTanks);
            blockNameConverter.AppendBlocksFromCustomNames(nameDoorsIn, listDoorsIn);
            blockNameConverter.AppendBlocksFromCustomNames(nameDoorsOut, listDoorsOut);
            blockNameConverter.AppendBlocksFromCustomNames(nameWarningLights, listWarningLights);
            blockNameConverter.AppendBlocksFromCustomNames(nameTextPanels, listTextPanels);
            blockNameConverter.AppendBlocksFromCustomNames(nameWarningSounds, listWarningSounds);

            airTanksManager = new GasTanksManager(listAirTanks);
            airTanksManager.SetStatusReport(statusReport);
            statusReport.maxCharsPerLine = 40;

            airLockController = new PressurizedAreaController(listDoorsOut, listDoorsIn, listAIrVentsToTanks, listAirVentsToGens, airTanksManager, AlertDictionary(), statusReport);

            Runtime.UpdateFrequency = UpdateFrequency.Update100;
        }