23 lines
		
	
	
		
			587 B
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			587 B
		
	
	
	
		
			C#
		
	
	
	
| using SRDebugger.Services;
 | |
| using SRDebugger.Services.Implementation;
 | |
| using SRF.Service;
 | |
| 
 | |
| public static class SRDebug
 | |
| {
 | |
|     public const string Version = SRDebugger.VersionInfo.Version;
 | |
| 
 | |
|     public static IDebugService Instance
 | |
|     {
 | |
|         get { return SRServiceManager.GetService<IDebugService>(); }
 | |
|     }
 | |
| 
 | |
|     public static void Init()
 | |
|     {
 | |
|         // Initialize console if it hasn't already initialized.
 | |
|         SRServiceManager.GetService<IConsoleService>();
 | |
| 
 | |
|         // Load the debug service
 | |
|         SRServiceManager.GetService<IDebugService>();
 | |
|     }
 | |
| }
 |