more commands, change display communication to new lib

This commit is contained in:
Vinzenz Schroeter 2024-04-12 16:05:24 +02:00
commit 7213318838

View file

@ -1,12 +1,12 @@
using TanksServer.ServicePointDisplay;
using DisplayCommands;
namespace TanksServer.Graphics;
internal sealed class LastFinishedFrameProvider
{
private PixelDisplayBufferView? _lastFrame;
private PixelGrid? _lastFrame;
public PixelDisplayBufferView LastFrame
public PixelGrid LastFrame
{
get => _lastFrame ?? throw new InvalidOperationException("first frame not yet drawn");
set => _lastFrame = value;