/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or the license accompanying this file. Do not * remove or modify any license notices. This file is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ #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