/* * 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 "ShapeComponentConverters.h" #include #include #include #include #include namespace LmbrCentral { namespace ClassConverters { bool UpgradeBoxShapeComponent(AZ::SerializeContext& context, AZ::SerializeContext::DataElementNode& classElement) { // upgrade for editor and runtime components at this stage are the same return UpgradeShapeComponentConfigToShape( classElement.GetVersion(), "BoxShape", context, classElement); } bool UpgradeSphereShapeComponent(AZ::SerializeContext& context, AZ::SerializeContext::DataElementNode& classElement) { // upgrade for editor and runtime components at this stage are the same return UpgradeShapeComponentConfigToShape( classElement.GetVersion(), "SphereShape", context, classElement); } bool UpgradeCapsuleShapeComponent(AZ::SerializeContext& context, AZ::SerializeContext::DataElementNode& classElement) { // upgrade for editor and runtime components at this stage are the same return UpgradeShapeComponentConfigToShape( classElement.GetVersion(), "CapsuleShape", context, classElement); } bool UpgradeCylinderShapeComponent(AZ::SerializeContext& context, AZ::SerializeContext::DataElementNode& classElement) { // upgrade for editor and runtime components at this stage are the same return UpgradeShapeComponentConfigToShape( classElement.GetVersion(), "CylinderShape", context, classElement); } } }