GenerationComponent.cpp 907 B

123456789101112131415161718192021222324252627282930313233
  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. #include <AzCore/Serialization/SerializeContext.h>
  9. #include <SceneAPI/SceneCore/Components/GenerationComponent.h>
  10. namespace AZ::SceneAPI::SceneCore
  11. {
  12. void GenerationComponent::Activate()
  13. {
  14. ActivateBindings();
  15. }
  16. void GenerationComponent::Deactivate()
  17. {
  18. DeactivateBindings();
  19. }
  20. void GenerationComponent::Reflect(ReflectContext* context)
  21. {
  22. SerializeContext* serializeContext = azrtti_cast<SerializeContext*>(context);
  23. if (serializeContext)
  24. {
  25. serializeContext->Class<GenerationComponent, AZ::Component, Events::CallProcessorBinder>()->Version(1);
  26. }
  27. }
  28. } // namespace AZ::SceneAPI::SceneCore