using Content.Shared._CP14.Trading; using Content.Shared._CP14.Trading.Systems; using Robust.Client.UserInterface; namespace Content.Client._CP14.Trading; public sealed class CP14TradingPlatformBoundUserInterface(EntityUid owner, Enum uiKey) : BoundUserInterface(owner, uiKey) { private CP14TradingPlatformWindow? _window; protected override void Open() { base.Open(); _window = this.CreateWindow(); _window.OnBuy += pos => SendMessage(new CP14TradingPositionBuyAttempt(pos)); } protected override void UpdateState(BoundUserInterfaceState state) { base.UpdateState(state); switch (state) { case CP14TradingPlatformUiState storeState: _window?.UpdateState(storeState); break; } } }