IDebugPanelService.cs 909 B

1234567891011121314151617181920212223242526272829303132333435
  1. namespace SRDebugger.Services
  2. {
  3. using System;
  4. public interface IDebugPanelService
  5. {
  6. /// <summary>
  7. /// Is the debug panel currently loaded into the scene
  8. /// </summary>
  9. bool IsLoaded { get; }
  10. /// <summary>
  11. /// Get or set whether the debug pane should be visible
  12. /// </summary>
  13. bool IsVisible { get; set; }
  14. /// <summary>
  15. /// Currently active tab (if available in DefaultTabs, otherwise null)
  16. /// </summary>
  17. DefaultTabs? ActiveTab { get; }
  18. event Action<IDebugPanelService, bool> VisibilityChanged;
  19. /// <summary>
  20. /// Force the debug panel to unload from the scene
  21. /// </summary>
  22. void Unload();
  23. /// <summary>
  24. /// Open the given tab
  25. /// </summary>
  26. /// <param name="tab"></param>
  27. void OpenTab(DefaultTabs tab);
  28. }
  29. }