don't implicitly depend on DataManager in data widget load functions

This commit is contained in:
goat 2024-12-26 17:16:19 +01:00
parent f3d7c6f2ea
commit 10f4009a0c
3 changed files with 35 additions and 16 deletions

View file

@ -0,0 +1,23 @@
using System.Diagnostics;
namespace Dalamud.Interface.Internal.Asserts;
public static class RenderScopes
{
private static RenderScopeFrame currentFrame = new();
private static RenderScopeFrame lastFrame = new();
public static RenderScopeFrame GetLastFrame() => lastFrame;
public static RenderScopeFrame GetCurrentFrame() => currentFrame;
public static void NewFrame()
{
//Debug.Assert(currentFrame.IsRoot, "NewFrame() but we didn't pop all the way to .");
}
public class RenderScopeFrame
{
}
}