using Content.Shared.Atmos.Components; using Content.Shared.Atmos.EntitySystems; namespace Content.Client.Atmos.EntitySystems; public sealed class GasTankSystem : SharedGasTankSystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnGasTankState); } 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(); } } }