コード例 #1
0
 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);
     }
 }
コード例 #7
0
        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);
コード例 #9
0
        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);
        }