BehaviorComponent.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. namespace AZ
  12. {
  13. namespace SceneAPI
  14. {
  15. namespace SceneCore
  16. {
  17. // Behavior components are small logic units that exist as long as the SceneAPI is
  18. // initialized and active. These components can react to various events that
  19. // happen to a scene and make appropriate changes, additions or removals. These
  20. // components are also responsible to register their associated data with the
  21. // reflect context.
  22. class SCENE_CORE_CLASS BehaviorComponent
  23. : public AZ::Component
  24. {
  25. public:
  26. AZ_COMPONENT(BehaviorComponent, "{DA66AE07-9ECF-4108-9CCC-9BFF618DD4AD}");
  27. ~BehaviorComponent() override = default;
  28. SCENE_CORE_API void Activate() override;
  29. SCENE_CORE_API void Deactivate() override;
  30. static void Reflect(ReflectContext* context);
  31. };
  32. } // namespace SceneCore
  33. } // namespace SceneAPI
  34. } // namespace AZ