ImportGroup.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 <SceneAPI/SceneCore/Components/BehaviorComponent.h>
  10. #include <SceneAPI/SceneCore/Events/ManifestMetaInfoBus.h>
  11. #include <SceneAPI/SceneCore/Events/AssetImportRequest.h>
  12. namespace AZ::SceneAPI::Behaviors
  13. {
  14. class ImportGroup
  15. : public SceneCore::BehaviorComponent
  16. , public Events::ManifestMetaInfoBus::Handler
  17. , public Events::AssetImportRequestBus::Handler
  18. {
  19. public:
  20. AZ_COMPONENT(ImportGroup, "{209DF1FB-449F-403A-A468-32A775289AF8}", SceneCore::BehaviorComponent);
  21. ~ImportGroup() override = default;
  22. void Activate() override;
  23. void Deactivate() override;
  24. static void Reflect(ReflectContext* context);
  25. void GetCategoryAssignments(CategoryRegistrationList& categories, const Containers::Scene& scene) override;
  26. void InitializeObject(const Containers::Scene& scene, DataTypes::IManifestObject& target) override;
  27. Events::ProcessingResult UpdateManifest(Containers::Scene& scene, ManifestAction action,
  28. RequestingApplication requester) override;
  29. void GetPolicyName(AZStd::string& result) const override
  30. {
  31. result = "SceneAPI::ImportGroup";
  32. }
  33. private:
  34. static const int s_importGroupPreferredTabOrder;
  35. };
  36. } // namespace AZ::SceneAPI::Behaviors