2
0

LoadingComponent.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. // Loading components are small logic units that exist only during loading. Each of
  19. // these components take care of a small piece of the loading process, allowing
  20. // multiple components to use the same sources 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 LoadingComponent
  24. : public AZ::Component
  25. , public Events::CallProcessorBinder
  26. {
  27. public:
  28. AZ_COMPONENT(LoadingComponent, "{335A696D-38DA-4A4F-B3F3-DBAD1FE86888}", Events::CallProcessorBinder);
  29. LoadingComponent() = default;
  30. ~LoadingComponent() 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