GenerationComponent.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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::SceneAPI::SceneCore
  13. {
  14. // Generation components are small logic units that exist only during scene generation. Each of
  15. // these components take care of a piece of the generation process, allowing
  16. // multiple components to do runtime creation of scene graph objects.
  17. // Use the BindToCall from the CallProcessorBinder to be able to react to specific
  18. // loading contexts/events.
  19. class SCENE_CORE_CLASS GenerationComponent
  20. : public AZ::Component
  21. , public Events::CallProcessorBinder
  22. {
  23. public:
  24. AZ_COMPONENT(GenerationComponent, "{3DBA42C1-894E-4437-B046-BC399E34366B}", Events::CallProcessorBinder);
  25. SCENE_CORE_API void Activate() override;
  26. SCENE_CORE_API void Deactivate() override;
  27. static void Reflect(ReflectContext* context);
  28. };
  29. } // namespace AZ::SceneAPI::SceneCore