/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include #include #include #include //-----------------------------------------------------------------------------------------------// CImplementationManager::CImplementationManager() { } //-----------------------------------------------------------------------------------------------// bool CImplementationManager::LoadImplementation() { AudioControls::CATLControlsModel* pATLModel = CAudioControlsEditorPlugin::GetATLModel(); if (pATLModel) { pATLModel->ClearAllConnections(); // release the loaded implementation (if any) Release(); AudioControlsEditor::EditorImplPluginEventBus::Broadcast(&AudioControlsEditor::EditorImplPluginEventBus::Events::InitializeEditorImplPlugin); } else { return false; } ImplementationChanged(); return true; } //-----------------------------------------------------------------------------------------------// void CImplementationManager::Release() { AudioControlsEditor::EditorImplPluginEventBus::Broadcast(&AudioControlsEditor::EditorImplPluginEventBus::Events::ReleaseEditorImplPlugin); } //-----------------------------------------------------------------------------------------------// AudioControls::IAudioSystemEditor* CImplementationManager::GetImplementation() { AudioControls::IAudioSystemEditor* editor = nullptr; AudioControlsEditor::EditorImplPluginEventBus::BroadcastResult(editor, &AudioControlsEditor::EditorImplPluginEventBus::Events::GetEditorImplPlugin); return editor; } #include