more commands, change display communication to new lib
This commit is contained in:
parent
38463ac109
commit
7213318838
1 changed files with 240 additions and 417 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Reference in a new issue