RemoteToolsModuleInterface.h 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/Memory/SystemAllocator.h>
  9. #include <AzCore/Module/Module.h>
  10. #include <RemoteToolsSystemComponent.h>
  11. namespace RemoteTools
  12. {
  13. class RemoteToolsModuleInterface
  14. : public AZ::Module
  15. {
  16. public:
  17. AZ_RTTI(RemoteToolsModuleInterface, "{737ac146-f2c5-4f21-bb86-4bb665ca5f65}", AZ::Module);
  18. AZ_CLASS_ALLOCATOR(RemoteToolsModuleInterface, AZ::SystemAllocator);
  19. RemoteToolsModuleInterface()
  20. {
  21. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  22. // Add ALL components descriptors associated with this gem to m_descriptors.
  23. // This will associate the AzTypeInfo information for the components with the the SerializeContext, BehaviorContext and EditContext.
  24. // This happens through the [MyComponent]::Reflect() function.
  25. m_descriptors.insert(m_descriptors.end(), {
  26. RemoteToolsSystemComponent::CreateDescriptor(),
  27. });
  28. }
  29. /**
  30. * Add required SystemComponents to the SystemEntity.
  31. */
  32. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  33. {
  34. return AZ::ComponentTypeList{
  35. azrtti_typeid<RemoteToolsSystemComponent>(),
  36. };
  37. }
  38. };
  39. }// namespace RemoteTools