From e73bcde90e09f35aa9005578f43d662f44e26c5a Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 18 Feb 2022 23:24:48 +0100 Subject: [PATCH] feat(game): add method to get all entities from the map --- Core/NosSmooth.Game/Data/Maps/MapEntities.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core/NosSmooth.Game/Data/Maps/MapEntities.cs b/Core/NosSmooth.Game/Data/Maps/MapEntities.cs index 3e6f1ad..ddf7c0d 100644 --- a/Core/NosSmooth.Game/Data/Maps/MapEntities.cs +++ b/Core/NosSmooth.Game/Data/Maps/MapEntities.cs @@ -25,6 +25,13 @@ public class MapEntities _entities = new ConcurrentDictionary(); } + /// + /// Gets the entities on the map. + /// + /// The list of the entities. + public ICollection GetEntities() + => _entities.Values; + /// /// Gets the given entity by id. /// -- 2.49.0