public void Main(string argument, UpdateType updateSource) { if (argument == "depressurize") { airLockController.Depressurize(); } else if (argument == "pressurize") { airLockController.Pressurize(); } else if (argument == "lockdown") { airLockController.LockDown(); } if (updateSource.HasFlag(UpdateType.Update100)) { airLockController.CheckStatus(); Echo(statusReport.RetrieveFullReportText()); foreach (IMyTextPanel panel in listTextPanels) { panel.WritePublicText(statusReport.RetrieveFullReportText(), true); } statusReport.Clear(); } }
public void Main(string argument, UpdateType updateSource) { if ((updateSource & UpdateType.Update100) != 0) { Echo(statusReport.RetrieveFullReportText()); statusReport.Clear(); Echo(gasTanksManager.FilledRatio.ToString()); } }
public void Main(string argument, UpdateType updateSource) { if (argument == "depressurize") { hangerPressureController.Depressurize(); } else if (argument == "pressurize") { hangerPressureController.Pressurize(); } else if (argument == "lockdown") { hangerPressureController.LockDown(); } if ((updateSource & UpdateType.Update100) != 0) { hangerPressureController.CheckStatus(); Echo(statusReport.RetrieveFullReportText()); statusReport.Clear(); } }