mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
don't implicitly depend on DataManager in data widget load functions
This commit is contained in:
parent
f3d7c6f2ea
commit
10f4009a0c
3 changed files with 35 additions and 16 deletions
23
Dalamud/Interface/Internal/Asserts/RenderScopes.cs
Normal file
23
Dalamud/Interface/Internal/Asserts/RenderScopes.cs
Normal 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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue