2
0

LoadingComponent.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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/LoadingComponent.h>
  10. namespace AZ
  11. {
  12. namespace SceneAPI
  13. {
  14. namespace SceneCore
  15. {
  16. void LoadingComponent::Activate()
  17. {
  18. ActivateBindings();
  19. }
  20. void LoadingComponent::Deactivate()
  21. {
  22. DeactivateBindings();
  23. }
  24. void LoadingComponent::Reflect(ReflectContext* context)
  25. {
  26. SerializeContext* serializeContext = azrtti_cast<SerializeContext*>(context);
  27. if (serializeContext)
  28. {
  29. serializeContext->Class<LoadingComponent, AZ::Component>()->Version(2);
  30. }
  31. }
  32. } // namespace SceneCore
  33. } // namespace SceneAPI
  34. } // namespace AZ