PalacePal/Pal.Client/Scheduled/QueuedConfigUpdate.cs

29 lines
769 B
C#
Raw Permalink Normal View History

using Microsoft.Extensions.Logging;
using Pal.Client.Configuration;
using Pal.Client.DependencyInjection;
2023-02-18 20:12:36 +00:00
using Pal.Client.Floors;
using Pal.Client.Rendering;
2023-03-30 20:01:43 +00:00
namespace Pal.Client.Scheduled;
internal sealed class QueuedConfigUpdate : IQueueOnFrameworkThread
{
2023-03-30 20:01:43 +00:00
internal sealed class Handler : IQueueOnFrameworkThread.Handler<QueuedConfigUpdate>
{
2023-03-30 20:01:43 +00:00
private readonly RenderAdapter _renderAdapter;
2023-03-30 20:01:43 +00:00
public Handler(
ILogger<Handler> logger,
RenderAdapter renderAdapter)
: base(logger)
{
_renderAdapter = renderAdapter;
}
2023-03-30 20:01:43 +00:00
protected override void Run(QueuedConfigUpdate queued, ref bool recreateLayout)
{
_renderAdapter.ConfigUpdated();
}
}
}