14 lines
357 B
C#
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;
|
|
}
|
|
}
|