servicepoint-tanks/TanksServer/Graphics/BulletDrawer.cs
2024-04-10 22:39:33 +02:00

14 lines
357 B
C#

using TanksServer.GameLogic;
using TanksServer.ServicePointDisplay;
namespace TanksServer.Graphics;
internal sealed class BulletDrawer(BulletManager bullets): IDrawStep
{
public void Draw(PixelDisplayBufferView buffer)
{
foreach (var bullet in bullets.GetAll())
buffer.Pixels[bullet.Position.ToPixelPosition()] = true;
}
}