2024-04-09 22:38:56 +02:00
|
|
|
using TanksServer.ServicePointDisplay;
|
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-09 22:38:56 +02:00
|
|
|
private PixelDisplayBufferView? _lastFrame;
|
2024-04-07 20:16:22 +02:00
|
|
|
|
2024-04-09 22:38:56 +02:00
|
|
|
public PixelDisplayBufferView LastFrame
|
2024-04-07 20:16:22 +02:00
|
|
|
{
|
|
|
|
get => _lastFrame ?? throw new InvalidOperationException("first frame not yet drawn");
|
|
|
|
set => _lastFrame = value;
|
|
|
|
}
|
|
|
|
}
|