servicepoint-tanks/TanksServer/Graphics/LastFinishedFrameProvider.cs

15 lines
318 B
C#
Raw Normal View History

using DisplayCommands;
2024-04-07 20:16:22 +02:00
2024-04-10 19:25:45 +02:00
namespace TanksServer.Graphics;
2024-04-07 20:16:22 +02:00
internal sealed class LastFinishedFrameProvider
{
private PixelGrid? _lastFrame;
2024-04-13 14:08:51 +02:00
public PixelGrid LastFrame
2024-04-07 20:16:22 +02:00
{
get => _lastFrame ?? throw new InvalidOperationException("first frame not yet drawn");
set => _lastFrame = value;
}
}