EditorStarsSystemComponent.cpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/SerializeContext.h>
  9. #include <EditorStarsSystemComponent.h>
  10. #include <AzCore/Serialization/EditContext.h>
  11. namespace AZ::Render
  12. {
  13. void EditorStarsSystemComponent::Reflect(AZ::ReflectContext* context)
  14. {
  15. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  16. {
  17. serializeContext->Class<EditorStarsSystemComponent, StarsSystemComponent>()
  18. ->Version(0);
  19. if (AZ::EditContext* ec = serializeContext->GetEditContext())
  20. {
  21. ec->Class<StarsSystemComponent>("Stars", "Stars system component")
  22. ->ClassElement(AZ::Edit::ClassElements::EditorData, "")
  23. ->Attribute(AZ::Edit::Attributes::AutoExpand, true)
  24. ;
  25. }
  26. }
  27. }
  28. void EditorStarsSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  29. {
  30. BaseSystemComponent::GetProvidedServices(provided);
  31. provided.push_back(AZ_CRC_CE("EditorStarsService"));
  32. }
  33. void EditorStarsSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  34. {
  35. BaseSystemComponent::GetIncompatibleServices(incompatible);
  36. incompatible.push_back(AZ_CRC_CE("EditorStarsService"));
  37. }
  38. } // namespace Stars