2
0

TickBusOrderViewerSystemComponent.cpp 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 <AzCore/Serialization/EditContext.h>
  10. #include "TickBusOrderViewerSystemComponent.h"
  11. namespace TickBusOrderViewer
  12. {
  13. void TickBusOrderViewerSystemComponent::Reflect(AZ::ReflectContext* context)
  14. {
  15. if (AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context))
  16. {
  17. serialize->Class<TickBusOrderViewerSystemComponent, AZ::Component>()
  18. ->Version(0);
  19. if (AZ::EditContext* ec = serialize->GetEditContext())
  20. {
  21. ec->Class<TickBusOrderViewerSystemComponent>(
  22. "TickBusOrderViewer",
  23. "Provides a console command for viewing tick bus order, print_tickbus_handlers.")
  24. ->ClassElement(AZ::Edit::ClassElements::EditorData, "")
  25. ->Attribute(AZ::Edit::Attributes::AutoExpand, true)
  26. ;
  27. }
  28. }
  29. }
  30. void TickBusOrderViewerSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  31. {
  32. provided.push_back(AZ_CRC_CE("TickBusOrderViewerService"));
  33. }
  34. void TickBusOrderViewerSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  35. {
  36. incompatible.push_back(AZ_CRC_CE("TickBusOrderViewerService"));
  37. }
  38. void TickBusOrderViewerSystemComponent::GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
  39. {
  40. (void)required;
  41. }
  42. void TickBusOrderViewerSystemComponent::GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent)
  43. {
  44. (void)dependent;
  45. }
  46. void TickBusOrderViewerSystemComponent::Init()
  47. {
  48. }
  49. void TickBusOrderViewerSystemComponent::Activate()
  50. {
  51. TickBusOrderViewerRequestBus::Handler::BusConnect();
  52. }
  53. void TickBusOrderViewerSystemComponent::Deactivate()
  54. {
  55. TickBusOrderViewerRequestBus::Handler::BusDisconnect();
  56. }
  57. }