using Content.Shared.Station; namespace Content.Client.Station; /// /// This handles letting the client know stations are a thing. Only really used by an admin menu. /// public sealed class StationSystem : EntitySystem { private readonly HashSet _stations = new(); /// /// All stations that currently exist. /// /// /// I'd have this just invoke an entity query, but we're on the client and the client barely knows about stations. /// public IReadOnlySet Stations => _stations; /// public override void Initialize() { SubscribeNetworkEvent(StationsUpdated); } private void StationsUpdated(StationsUpdatedEvent ev) { _stations.Clear(); _stations.UnionWith(ev.Stations); } }