CMakeTestbedSystemComponent.cpp 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  3. * its licensors.
  4. *
  5. * For complete copyright and license terms please see the LICENSE at the root of this
  6. * distribution (the "License"). All use of this software is governed by the License,
  7. * or, if provided, by the license below or the license accompanying this file. Do not
  8. * remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  9. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. *
  11. */
  12. #include <AzCore/Serialization/SerializeContext.h>
  13. #include <AzCore/Serialization/EditContext.h>
  14. #include <AzCore/Serialization/EditContextConstants.inl>
  15. #include "CMakeTestbedSystemComponent.h"
  16. namespace CMakeTestbed
  17. {
  18. void CMakeTestbedSystemComponent::Reflect(AZ::ReflectContext* context)
  19. {
  20. if (AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context))
  21. {
  22. serialize->Class<CMakeTestbedSystemComponent, AZ::Component>()
  23. ->Version(0)
  24. ;
  25. if (AZ::EditContext* ec = serialize->GetEditContext())
  26. {
  27. ec->Class<CMakeTestbedSystemComponent>("CMakeTestbed", "[Description of functionality provided by this System Component]")
  28. ->ClassElement(AZ::Edit::ClassElements::EditorData, "")
  29. ->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC("System"))
  30. ->Attribute(AZ::Edit::Attributes::AutoExpand, true)
  31. ;
  32. }
  33. }
  34. }
  35. void CMakeTestbedSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  36. {
  37. provided.push_back(AZ_CRC("CMakeTestbedService"));
  38. }
  39. void CMakeTestbedSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  40. {
  41. incompatible.push_back(AZ_CRC("CMakeTestbedService"));
  42. }
  43. void CMakeTestbedSystemComponent::GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
  44. {
  45. AZ_UNUSED(required);
  46. }
  47. void CMakeTestbedSystemComponent::GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent)
  48. {
  49. AZ_UNUSED(dependent);
  50. }
  51. void CMakeTestbedSystemComponent::Init()
  52. {
  53. }
  54. void CMakeTestbedSystemComponent::Activate()
  55. {
  56. CMakeTestbedRequestBus::Handler::BusConnect();
  57. }
  58. void CMakeTestbedSystemComponent::Deactivate()
  59. {
  60. CMakeTestbedRequestBus::Handler::BusDisconnect();
  61. }
  62. }