/* * 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 #include #include #include #include #include #include namespace AZ { namespace Render { void AtomLyIntegrationCommonFeaturesSystemComponent::Reflect(ReflectContext* context) { if (SerializeContext* serialize = azrtti_cast(context)) { serialize->Class() ->Version(0); if (AZ::EditContext* ec = serialize->GetEditContext()) { ec->Class("Common", "[Description of functionality provided by this System Component]") ->ClassElement(Edit::ClassElements::EditorData, "") ->Attribute(Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC("System", 0xc94d118b)) ->Attribute(Edit::Attributes::AutoExpand, true) ; } } CoreLightConstantsReflect(context); } void AtomLyIntegrationCommonFeaturesSystemComponent::GetProvidedServices(ComponentDescriptor::DependencyArrayType& provided) { provided.push_back(AZ_CRC("LyIntegrationCommonFeaturesService", 0x9083ee7d)); } void AtomLyIntegrationCommonFeaturesSystemComponent::GetIncompatibleServices(ComponentDescriptor::DependencyArrayType& incompatible) { incompatible.push_back(AZ_CRC("LyIntegrationCommonFeaturesService", 0x9083ee7d)); } void AtomLyIntegrationCommonFeaturesSystemComponent::GetRequiredServices(ComponentDescriptor::DependencyArrayType& required) { required.push_back(AZ_CRC("CommonService", 0x6398eec4)); } void AtomLyIntegrationCommonFeaturesSystemComponent::GetDependentServices(ComponentDescriptor::DependencyArrayType& dependent) { AZ_UNUSED(dependent); } void AtomLyIntegrationCommonFeaturesSystemComponent::Init() { } void AtomLyIntegrationCommonFeaturesSystemComponent::Activate() { auto modelAssetHandler = azrtti_cast(Data::AssetManager::Instance().GetHandler(azrtti_typeid())); modelAssetHandler->m_componentTypeId = EditorMeshComponentTypeId; } void AtomLyIntegrationCommonFeaturesSystemComponent::Deactivate() { } } // namespace Render } // namespace AZ