ExportingComponent.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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/Component/Component.h>
  10. #include <SceneAPI/SceneCore/SceneCoreConfiguration.h>
  11. #include <SceneAPI/SceneCore/Events/CallProcessorBinder.h>
  12. namespace AZ
  13. {
  14. namespace SceneAPI
  15. {
  16. namespace SceneCore
  17. {
  18. // Exporting components are small logic units that exist only during exporting. Each of
  19. // these components take care of a small piece of the exporting process, allowing
  20. // multiple components to use the same graph and manifest to collect data.
  21. // Use the BindToCall from the CallProcessorBinder to be able to react to specific
  22. // loading contexts/events.
  23. class SCENE_CORE_CLASS ExportingComponent
  24. : public AZ::Component
  25. , public Events::CallProcessorBinder
  26. {
  27. public:
  28. AZ_COMPONENT(ExportingComponent, "{0CB2327A-EAB7-4F16-8204-861530C3A077}", Events::CallProcessorBinder);
  29. ExportingComponent() = default;
  30. ~ExportingComponent() override = default;
  31. SCENE_CORE_API void Activate() override;
  32. SCENE_CORE_API void Deactivate() override;
  33. static void Reflect(ReflectContext* context);
  34. };
  35. } // namespace SceneCore
  36. } // namespace SceneAPI
  37. } // namespace AZ