Skip to content

Commit

Permalink
add public properties for indexed entities & hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
sicusa committed Apr 20, 2024
1 parent dbd48c0 commit 5c66a41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sia/Worlds/World.Indexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ public partial class World
{
public EntityRef this[Identity id] => _indexedEntities[id];

public IReadOnlyDictionary<Identity, EntityRef> IndexedEntities => _indexedEntities;
public IReadOnlySet<IReactiveEntityHost> IndexedHosts => _indexedHosts;

private readonly Dictionary<Identity, EntityRef> _indexedEntities = [];
private readonly HashSet<IReactiveEntityHost> _indexedHosts = [];
private readonly HashSet<IReactiveEntityQuery> _indexerQueries = [];
Expand Down

0 comments on commit 5c66a41

Please sign in to comment.