using Content.Client.Atmos.UI; using Content.Client.Items; using Content.Shared.Atmos.Components; using Content.Shared.Atmos.EntitySystems; namespace Content.Client.Atmos.EntitySystems; public sealed partial class GasTankSystem : SharedGasTankSystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnGasTankState); Subs.ItemStatus(entity => new TankPressureStatusControl(entity)); } protected override void DeviceUpdated(Entity entity, ref AtmosDeviceUpdateEvent args) { // Atmos not predicted :( throw new NotImplementedException(); } private void OnGasTankState(Entity ent, ref AfterAutoHandleStateEvent args) { if (UI.TryGetOpenUi(ent.Owner, SharedGasTankUiKey.Key, out var bui)) { bui.Update(); } } public override void UpdateUserInterface(Entity ent) { if (UI.TryGetOpenUi(ent.Owner, SharedGasTankUiKey.Key, out var bui)) { bui.Update(); } } }