Fixed warnings

This commit is contained in:
cake
2025-12-28 03:17:27 +01:00
parent a3ea48c6e1
commit 2abc92fc61

View File

@@ -75,16 +75,8 @@ public unsafe class LightFinderPlateHandler : IHostedService, IMediatorSubscribe
#if DEBUG
// Debug controls
private bool _debugEnabled;
private bool _debugDisableOcclusion;
private bool _debugDrawUiRects;
private bool _debugDrawLabelRects = true;
// Debug counters (read-only from UI)
private int _debugLabelCountLastFrame;
private int _debugUiRectCountLastFrame;
private int _debugOccludedCountLastFrame;
private uint _debugLastNameplateFrame;
#endif
private bool IsPictomancyRenderer => _configService.Current.LightfinderLabelRenderer == LightfinderLabelRenderer.Pictomancy;
@@ -1262,14 +1254,14 @@ public unsafe class LightFinderPlateHandler : IHostedService, IMediatorSubscribe
.Where(u => u.IsVisible && u.PlayerCharacterId != uint.MaxValue)
.Select(u => (ulong)u.PlayerCharacterId)];
public int DebugLabelCountLastFrame { get => _debugLabelCountLastFrame; set => _debugLabelCountLastFrame = value; }
public int DebugUiRectCountLastFrame { get => _debugUiRectCountLastFrame; set => _debugUiRectCountLastFrame = value; }
public int DebugOccludedCountLastFrame { get => _debugOccludedCountLastFrame; set => _debugOccludedCountLastFrame = value; }
public uint DebugLastNameplateFrame { get => _debugLastNameplateFrame; set => _debugLastNameplateFrame = value; }
public bool DebugDrawUiRects { get => _debugDrawUiRects; set => _debugDrawUiRects = value; }
public bool DebugDrawLabelRects { get => _debugDrawLabelRects; set => _debugDrawLabelRects = value; }
public bool DebugDisableOcclusion { get => _debugDisableOcclusion; set => _debugDisableOcclusion = value; }
public bool DebugEnabled { get => _debugEnabled; set => _debugEnabled = value; }
public int DebugLabelCountLastFrame { get; set; }
public int DebugUiRectCountLastFrame { get; set; }
public int DebugOccludedCountLastFrame { get; set; }
public uint DebugLastNameplateFrame { get; set; }
public bool DebugDrawUiRects { get; set; }
public bool DebugDrawLabelRects { get; set; } = true;
public bool DebugDisableOcclusion { get; set; }
public bool DebugEnabled { get; set; }
public void FlagRefresh()
{