IDebugService.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using UnityEngine;
  3. namespace SRDebugger.Services
  4. {
  5. public interface IDebugService
  6. {
  7. Settings Settings { get; }
  8. bool IsDebugPanelVisible { get; }
  9. bool IsTriggerEnabled { get; set; }
  10. IDockConsoleService DockConsole { get; }
  11. bool IsProfilerDocked { get; set; }
  12. void AddSystemInfo(InfoEntry entry, string category = "Default");
  13. void ShowDebugPanel(bool requireEntryCode = true);
  14. void ShowDebugPanel(DefaultTabs tab, bool requireEntryCode = true);
  15. void HideDebugPanel();
  16. void DestroyDebugPanel();
  17. void AddOptionContainer(object container);
  18. void RemoveOptionContainer(object container);
  19. void PinAllOptions(string category);
  20. void UnpinAllOptions(string category);
  21. void PinOption(string name);
  22. void UnpinOption(string name);
  23. void ClearPinnedOptions();
  24. void ShowBugReportSheet(ActionCompleteCallback onComplete = null, bool takeScreenshot = true, string descriptionContent = null);
  25. event VisibilityChangedDelegate PanelVisibilityChanged;
  26. RectTransform EnableWorldSpaceMode();
  27. }
  28. }