PalacePal/Pal.Client/Scheduled/QueuedConfigUpdate.cs

22 lines
612 B
C#
Raw Normal View History

namespace Pal.Client.Scheduled
{
internal class QueuedConfigUpdate : IQueueOnFrameworkThread
{
public void Run(Plugin plugin, ref bool recreateLayout, ref bool saveMarkers)
{
if (Service.Configuration.Mode == Configuration.EMode.Offline)
{
LocalState.UpdateAll();
plugin.FloorMarkers.Clear();
plugin.EphemeralMarkers.Clear();
plugin.LastTerritory = 0;
recreateLayout = true;
saveMarkers = true;
}
2023-02-08 15:06:43 +00:00
plugin.ResetRenderer();
}
}
}