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