send scores to big display

This commit is contained in:
Vinzenz Schroeter 2024-04-09 22:38:56 +02:00
commit 7f00160780

View file

@ -1,11 +1,12 @@
using TanksServer.Helpers;
using TanksServer.ServicePointDisplay;
using TanksServer.Services;
namespace TanksServer.DrawSteps;
internal sealed class BulletDrawer(BulletManager bullets): IDrawStep
{
public void Draw(DisplayPixelBuffer buffer)
public void Draw(PixelDisplayBufferView buffer)
{
foreach (var bullet in bullets.GetAll())
buffer.Pixels[bullet.Position.ToPixelPosition().ToPixelIndex()] = true;