SRDebug.cs 494 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using SRDebugger.Services;
  3. using SRDebugger.Services.Implementation;
  4. using SRF.Service;
  5. public static class SRDebug
  6. {
  7. public static IDebugService Instance
  8. {
  9. get
  10. {
  11. return SRServiceManager.GetService<IDebugService>();
  12. }
  13. }
  14. public static void Init()
  15. {
  16. if (!SRServiceManager.HasService<IConsoleService>())
  17. {
  18. new StandardConsoleService();
  19. }
  20. SRServiceManager.GetService<IDebugService>();
  21. }
  22. public const string Version = "1.6.2";
  23. }