3
0

AssetGraphSceneDataBus.h 867 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Asset/AssetCommon.h>
  10. #include <AzCore/Math/Uuid.h>
  11. #include <AzCore/EBus/EBus.h>
  12. #include <Core/Core.h>
  13. namespace ScriptCanvasEditor
  14. {
  15. using SourceHandle = ScriptCanvas::SourceHandle;
  16. // #sc-editor-asset remove this
  17. class AssetGraphScene : public AZ::EBusTraits
  18. {
  19. public:
  20. virtual AZ::EntityId FindEditorNodeIdByAssetNodeId(const SourceHandle& assetId, AZ::EntityId assetNodeId) const = 0;
  21. virtual AZ::EntityId FindAssetNodeIdByEditorNodeId(const SourceHandle& assetId, AZ::EntityId editorNodeId) const = 0;
  22. };
  23. using AssetGraphSceneBus = AZ::EBus<AssetGraphScene>;
  24. }