108 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			108 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			C#
		
	
	
	
|  | namespace SRDebugger.Internal | |||
|  | { | |||
|  |     using Services; | |||
|  |     using SRF.Service; | |||
|  | 
 | |||
|  |     public static class Service | |||
|  |     { | |||
|  |         private static IConsoleService _consoleService; | |||
|  |         private static IDebugPanelService _debugPanelService; | |||
|  |         private static IDebugTriggerService _debugTriggerService; | |||
|  |         private static IPinnedUIService _pinnedUiService; | |||
|  |         private static IDebugCameraService _debugCameraService; | |||
|  |         private static IOptionsService _optionsService; | |||
|  |         private static IDockConsoleService _dockConsoleService; | |||
|  | 
 | |||
|  |         public static IConsoleService Console | |||
|  |         { | |||
|  |             get | |||
|  |             { | |||
|  |                 if (_consoleService == null) | |||
|  |                 { | |||
|  |                     _consoleService = SRServiceManager.GetService<IConsoleService>(); | |||
|  |                 } | |||
|  | 
 | |||
|  |                 return _consoleService; | |||
|  |             } | |||
|  |         } | |||
|  | 
 | |||
|  |         public static IDockConsoleService DockConsole | |||
|  |         { | |||
|  |             get | |||
|  |             { | |||
|  |                 if (_dockConsoleService == null) | |||
|  |                 { | |||
|  |                     _dockConsoleService = SRServiceManager.GetService<IDockConsoleService>(); | |||
|  |                 } | |||
|  | 
 | |||
|  |                 return _dockConsoleService; | |||
|  |             } | |||
|  |         } | |||
|  | 
 | |||
|  |         public static IDebugPanelService Panel | |||
|  |         { | |||
|  |             get | |||
|  |             { | |||
|  |                 if (_debugPanelService == null) | |||
|  |                 { | |||
|  |                     _debugPanelService = SRServiceManager.GetService<IDebugPanelService>(); | |||
|  |                 } | |||
|  | 
 | |||
|  |                 return _debugPanelService; | |||
|  |             } | |||
|  |         } | |||
|  | 
 | |||
|  |         public static IDebugTriggerService Trigger | |||
|  |         { | |||
|  |             get | |||
|  |             { | |||
|  |                 if (_debugTriggerService == null) | |||
|  |                 { | |||
|  |                     _debugTriggerService = SRServiceManager.GetService<IDebugTriggerService>(); | |||
|  |                 } | |||
|  | 
 | |||
|  |                 return _debugTriggerService; | |||
|  |             } | |||
|  |         } | |||
|  | 
 | |||
|  |         public static IPinnedUIService PinnedUI | |||
|  |         { | |||
|  |             get | |||
|  |             { | |||
|  |                 if (_pinnedUiService == null) | |||
|  |                 { | |||
|  |                     _pinnedUiService = SRServiceManager.GetService<IPinnedUIService>(); | |||
|  |                 } | |||
|  | 
 | |||
|  |                 return _pinnedUiService; | |||
|  |             } | |||
|  |         } | |||
|  | 
 | |||
|  |         public static IDebugCameraService DebugCamera | |||
|  |         { | |||
|  |             get | |||
|  |             { | |||
|  |                 if (_debugCameraService == null) | |||
|  |                 { | |||
|  |                     _debugCameraService = SRServiceManager.GetService<IDebugCameraService>(); | |||
|  |                 } | |||
|  | 
 | |||
|  |                 return _debugCameraService; | |||
|  |             } | |||
|  |         } | |||
|  | 
 | |||
|  |         public static IOptionsService Options | |||
|  |         { | |||
|  |             get | |||
|  |             { | |||
|  |                 if (_optionsService == null) | |||
|  |                 { | |||
|  |                     _optionsService = SRServiceManager.GetService<IOptionsService>(); | |||
|  |                 } | |||
|  | 
 | |||
|  |                 return _optionsService; | |||
|  |             } | |||
|  |         } | |||
|  |     } | |||
|  | } |