Add some Redrawing Debug UI.

This commit is contained in:
Ottermandias 2023-11-03 15:23:48 +01:00
parent 79c43fe7b1
commit 7dabb3c647
2 changed files with 59 additions and 3 deletions

View file

@ -18,10 +18,13 @@ public unsafe partial class RedrawService
public const int GPoseSlots = 42;
public const int GPoseEndIdx = GPosePlayerIdx + GPoseSlots;
private readonly string?[] _gPoseNames = new string?[GPoseSlots];
private readonly string?[] _gPoseNames = new string?[GPoseSlots];
private int _gPoseNameCounter;
private bool InGPose
internal IReadOnlyList<string?> GPoseNames
=> _gPoseNames;
internal bool InGPose
=> _clientState.IsGPosing;
// VFuncs that disable and enable draw, used only for GPose actors.
@ -108,6 +111,15 @@ public sealed unsafe partial class RedrawService : IDisposable
private readonly List<int> _afterGPoseQueue = new(GPoseSlots);
private int _target = -1;
internal IReadOnlyList<int> Queue
=> _queue;
internal IReadOnlyList<int> AfterGPoseQueue
=> _afterGPoseQueue;
internal int Target
=> _target;
public event GameObjectRedrawnDelegate? GameObjectRedrawn;
public RedrawService(IFramework framework, IObjectTable objects, ITargetManager targets, ICondition conditions, IClientState clientState)