private void OnPumpLeaveAtmosphere(EntityUid uid, GasPressurePumpComponent component, AtmosDeviceDisabledEvent args)
 {
     if (ComponentManager.TryGetComponent(uid, out AppearanceComponent? appearance))
     {
         appearance.SetData(PressurePumpVisuals.Enabled, false);
     }
 }
Ejemplo n.º 2
0
 private void OnGasVentPumpLeaveAtmosphere(EntityUid uid, GasVentPumpComponent component, AtmosDeviceDisabledEvent args)
 {
     if (EntityManager.TryGetComponent(uid, out AppearanceComponent? appearance))
     {
         appearance.SetData(VentPumpVisuals.State, VentPumpState.Off);
     }
 }
Ejemplo n.º 3
0
 private void OnThermoMachineLeaveAtmosphere(EntityUid uid, GasThermoMachineComponent component, AtmosDeviceDisabledEvent args)
 {
     if (EntityManager.TryGetComponent(uid, out AppearanceComponent? appearance))
     {
         appearance.SetData(ThermoMachineVisuals.Enabled, false);
     }
 }
Ejemplo n.º 4
0
 private void OnGasVentPumpLeaveAtmosphere(EntityUid uid, GasVentPumpComponent component, AtmosDeviceDisabledEvent args)
 {
     UpdateState(uid, component);
 }
Ejemplo n.º 5
0
 private void OnGasDualPortVentPumpDisabled(EntityUid uid, GasDualPortVentPumpComponent vent, AtmosDeviceDisabledEvent args)
 {
     if (ComponentManager.TryGetComponent(uid, out AppearanceComponent? appearance))
     {
         appearance.SetData(VentPumpVisuals.State, VentPumpState.Off);
     }
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }