Exemple #1
0
		public FileHandler( BackBufferHandler backBufferHandler, LUTWriter lutWriter, ToolSettings settings, CameraCollection cameraCollection )
		{
			_backBufferHandler = backBufferHandler;
			_lutWriter = lutWriter;
			_settings = settings;
			_cameraCollection = cameraCollection;
		}
		public PhotoshopHandler( PhotoshopProtocol photoshopProtocol, BackBufferHandler backBufferHandler, LUTWriter lutWriter, ToolSettings settings, CameraCollection cameraCollection )
		{
			_photoshopProtocol = photoshopProtocol;
			_backBufferHandler = backBufferHandler;
			_lutWriter = lutWriter;
			_settings = settings;
			_cameraCollection = cameraCollection;
		}
		void OnEnable()
		{
			Connection = new PhotoshopConnection();

			PhotoshopProtocol = new PhotoshopProtocol( Connection );

			Cameras = new CameraCollection();

			BackBufferHandler = new BackBufferHandler( Cameras );

			LUTWriter = new LUTWriter();

			PhotoshopHandler = new PhotoshopHandler( PhotoshopProtocol, BackBufferHandler, LUTWriter, Settings, Cameras );

			FileHandler = new FileHandler( BackBufferHandler, LUTWriter, Settings, Cameras );

			Cameras.GenerateCameraList();
		}