~ruther/NosSmooth

e73bcde90e09f35aa9005578f43d662f44e26c5a — Rutherther 3 years ago af9dc24
feat(game): add method to get all entities from the map
1 files changed, 7 insertions(+), 0 deletions(-)

M Core/NosSmooth.Game/Data/Maps/MapEntities.cs
M Core/NosSmooth.Game/Data/Maps/MapEntities.cs => Core/NosSmooth.Game/Data/Maps/MapEntities.cs +7 -0
@@ 26,6 26,13 @@ public class MapEntities
    }

    /// <summary>
    /// Gets the entities on the map.
    /// </summary>
    /// <returns>The list of the entities.</returns>
    public ICollection<IEntity> GetEntities()
        => _entities.Values;

    /// <summary>
    /// Gets the given entity by id.
    /// </summary>
    /// <param name="id">The id of the entity.</param>