14 lines
357 B
C#
14 lines
357 B
C#
![]() |
using TanksServer.Helpers;
|
||
|
using TanksServer.Services;
|
||
|
|
||
|
namespace TanksServer.DrawSteps;
|
||
|
|
||
|
internal sealed class BulletDrawer(BulletManager bullets): IDrawStep
|
||
|
{
|
||
|
public void Draw(DisplayPixelBuffer buffer)
|
||
|
{
|
||
|
foreach (var bullet in bullets.GetAll())
|
||
|
buffer.Pixels[bullet.Position.ToPixelPosition().GetPixelIndex()] = true;
|
||
|
}
|
||
|
}
|