12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #include <AzCore/Serialization/SerializeContext.h>
- #include <SceneAPI/SceneCore/Components/ExportingComponent.h>
- #include <SceneAPI/SceneCore/Events/ExportProductList.h>
- #include <AzCore/RTTI/BehaviorContext.h>
- namespace AZ
- {
- namespace SceneAPI
- {
- namespace SceneCore
- {
- void ExportingComponent::Activate()
- {
- ActivateBindings();
- }
- void ExportingComponent::Deactivate()
- {
- DeactivateBindings();
- }
- void ExportingComponent::Reflect(ReflectContext* context)
- {
- SerializeContext* serializeContext = azrtti_cast<SerializeContext*>(context);
- if (serializeContext)
- {
- serializeContext->Class<ExportingComponent, AZ::Component>()->Version(2);
- }
- AZ::BehaviorContext* behaviorContext = azrtti_cast<AZ::BehaviorContext*>(context);
- if (behaviorContext)
- {
- Events::ExportProductList::Reflect(behaviorContext);
- }
- }
- } // namespace SceneCore
- } // namespace SceneAPI
- } // namespace AZ
|