2024-04-12 16:05:24 +02:00
|
|
|
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
|
|
|
|
{
|
2024-04-12 16:05:24 +02:00
|
|
|
private PixelGrid? _lastFrame;
|
2024-04-13 14:08:51 +02:00
|
|
|
|
2024-04-12 16:05:24 +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;
|
|
|
|
}
|
|
|
|
}
|