using TanksServer.Models; namespace TanksServer.Services; internal sealed class BulletManager { private readonly HashSet _bullets = new(); public void Spawn(Bullet bullet) => _bullets.Add(bullet); public IEnumerable GetAll() => _bullets; public void RemoveWhere(Predicate predicate) { _bullets.RemoveWhere(predicate); } }