Skip to content

Commit

Permalink
add GetWorldObjectsFromManager
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Feb 13, 2024
1 parent b04e287 commit efc6964
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions QSB/WorldSync/QSBWorldSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ private static void GameReset()

public static IEnumerable<IWorldObject> GetWorldObjects() => WorldObjects;

public static IEnumerable<IWorldObject> GetWorldObjectsFromManager(string managerName) => _managerToBuiltObjects[managerName];

public static IEnumerable<TWorldObject> GetWorldObjects<TWorldObject>()
where TWorldObject : IWorldObject
=> WorldObjects.OfType<TWorldObject>();
Expand Down

0 comments on commit efc6964

Please sign in to comment.