Fix objects tab not showing nents (#23837)
* Fix objects tab not showing nents * Fix everything
This commit is contained in:
@@ -7,8 +7,7 @@ namespace Content.Client.Station;
|
||||
/// </summary>
|
||||
public sealed class StationSystem : EntitySystem
|
||||
{
|
||||
|
||||
private readonly HashSet<EntityUid> _stations = new();
|
||||
private readonly List<(string Name, NetEntity Entity)> _stations = new();
|
||||
|
||||
/// <summary>
|
||||
/// All stations that currently exist.
|
||||
@@ -16,7 +15,7 @@ public sealed class StationSystem : EntitySystem
|
||||
/// <remarks>
|
||||
/// I'd have this just invoke an entity query, but we're on the client and the client barely knows about stations.
|
||||
/// </remarks>
|
||||
public IReadOnlySet<EntityUid> Stations => _stations;
|
||||
public IReadOnlyList<(string Name, NetEntity Entity)> Stations => _stations;
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override void Initialize()
|
||||
@@ -27,7 +26,7 @@ public sealed class StationSystem : EntitySystem
|
||||
private void StationsUpdated(StationsUpdatedEvent ev)
|
||||
{
|
||||
_stations.Clear();
|
||||
// TODO this needs to be dona in component states and with the Ensure() methods
|
||||
_stations.UnionWith(GetEntitySet(ev.Stations));
|
||||
// TODO this needs to be done in component states and with the Ensure() methods
|
||||
_stations.AddRange(ev.Stations);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user