EditorMeshSystemComponent.cpp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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/EditContext.h>
  9. #include <AzCore/Serialization/EditContextConstants.inl>
  10. #include <AzCore/Serialization/SerializeContext.h>
  11. #include <Mesh/EditorMeshSystemComponent.h>
  12. namespace AZ
  13. {
  14. namespace Render
  15. {
  16. //! Main system component for the Atom Common Feature Gem's editor/tools module.
  17. void EditorMeshSystemComponent::Reflect(AZ::ReflectContext* context)
  18. {
  19. if (AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context))
  20. {
  21. serialize->Class<EditorMeshSystemComponent, AZ::Component>()
  22. ->Version(0);
  23. if (AZ::EditContext* ec = serialize->GetEditContext())
  24. {
  25. ec->Class<EditorMeshSystemComponent>("EditorMeshSystemComponent", "System component that sets up necessary logic related to EditorMeshComponent..")
  26. ->ClassElement(AZ::Edit::ClassElements::EditorData, "")
  27. ->Attribute(AZ::Edit::Attributes::AutoExpand, true)
  28. ;
  29. }
  30. }
  31. }
  32. void EditorMeshSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  33. {
  34. provided.push_back(AZ_CRC_CE("EditorMeshSystem"));
  35. }
  36. void EditorMeshSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  37. {
  38. incompatible.push_back(AZ_CRC_CE("EditorMeshSystem"));
  39. }
  40. void EditorMeshSystemComponent::GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent)
  41. {
  42. AZ_UNUSED(dependent);
  43. }
  44. void EditorMeshSystemComponent::Activate()
  45. {
  46. }
  47. void EditorMeshSystemComponent::Deactivate()
  48. {
  49. }
  50. } // namespace Render
  51. } // namespace AZ