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