private void OnPumpLeaveAtmosphere(EntityUid uid, GasPressurePumpComponent component, AtmosDeviceDisabledEvent args)
 {
     if (ComponentManager.TryGetComponent(uid, out AppearanceComponent? appearance))
     {
         appearance.SetData(PressurePumpVisuals.Enabled, false);
     }
 }
예제 #2
0
 private void OnGasVentPumpLeaveAtmosphere(EntityUid uid, GasVentPumpComponent component, AtmosDeviceDisabledEvent args)
 {
     if (EntityManager.TryGetComponent(uid, out AppearanceComponent? appearance))
     {
         appearance.SetData(VentPumpVisuals.State, VentPumpState.Off);
     }
 }
예제 #3
0
 private void OnThermoMachineLeaveAtmosphere(EntityUid uid, GasThermoMachineComponent component, AtmosDeviceDisabledEvent args)
 {
     if (EntityManager.TryGetComponent(uid, out AppearanceComponent? appearance))
     {
         appearance.SetData(ThermoMachineVisuals.Enabled, false);
     }
 }
예제 #4
0
 private void OnGasVentPumpLeaveAtmosphere(EntityUid uid, GasVentPumpComponent component, AtmosDeviceDisabledEvent args)
 {
     UpdateState(uid, component);
 }
예제 #5
0
 private void OnGasDualPortVentPumpDisabled(EntityUid uid, GasDualPortVentPumpComponent vent, AtmosDeviceDisabledEvent args)
 {
     if (ComponentManager.TryGetComponent(uid, out AppearanceComponent? appearance))
     {
         appearance.SetData(VentPumpVisuals.State, VentPumpState.Off);
     }
 }
예제 #6
0
 private void OnVentScrubberLeaveAtmosphere(EntityUid uid, GasVentScrubberComponent component, AtmosDeviceDisabledEvent args)
 {
     if (ComponentManager.TryGetComponent(uid, out AppearanceComponent? appearance))
     {
         appearance.SetData(ScrubberVisuals.State, ScrubberState.Off);
     }
 }
        private void OnPumpLeaveAtmosphere(EntityUid uid, GasPressurePumpComponent pump, AtmosDeviceDisabledEvent args)
        {
            pump.Enabled = false;
            UpdateAppearance(uid, pump);

            DirtyUI(uid, pump);
            _userInterfaceSystem.TryCloseAll(uid, GasPressurePumpUiKey.Key);
        }
예제 #8
0
 private void OnVentScrubberLeaveAtmosphere(EntityUid uid, GasVentScrubberComponent component,
                                            AtmosDeviceDisabledEvent args) => UpdateState(uid, component);
        private void OnFilterLeaveAtmosphere(EntityUid uid, GasFilterComponent filter, AtmosDeviceDisabledEvent args)
        {
            filter.Enabled = false;

            UpdateAppearance(uid, filter);
            _ambientSoundSystem.SetAmbience(filter.Owner, false);

            DirtyUI(uid, filter);
            _userInterfaceSystem.TryCloseAll(uid, GasFilterUiKey.Key);
        }