3
0

NodePaletteModelBus.h 999 B

12345678910111213141516171819202122232425262728293031323334
  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/EBus/EBus.h>
  10. #include <AzCore/Component/EntityId.h>
  11. #include <ScriptCanvas/Core/Core.h>
  12. namespace ScriptCanvasEditor
  13. {
  14. struct NodePaletteModelInformation;
  15. using NodePaletteId = AZ::EntityId;
  16. class NodePaletteModelNotifications
  17. : public AZ::EBusTraits
  18. {
  19. public:
  20. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::ById;
  21. using BusIdType = AZ::EntityId;
  22. virtual void OnAssetModelRepopulated() = 0;
  23. virtual void OnAssetNodeAdded(NodePaletteModelInformation* nodeIdentifier) = 0;
  24. virtual void OnAssetNodeRemoved(NodePaletteModelInformation* nodeIdentifier) = 0;
  25. };
  26. using NodePaletteModelNotificationBus = AZ::EBus<NodePaletteModelNotifications>;
  27. }