12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // {BEGIN_LICENSE}
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- // {END_LICENSE}
- #include <AzCore/Memory/SystemAllocator.h>
- #include <AzCore/Module/Module.h>
- #include "ROS2-Gem-DemoSystemComponent.h"
- namespace ROS2_Gem_Demo
- {
- class ROS2_Gem_DemoModule
- : public AZ::Module
- {
- public:
- AZ_RTTI(ROS2_Gem_DemoModule, "{ebbd7642-5b1d-4ecb-901e-f0d52146528b}", AZ::Module);
- AZ_CLASS_ALLOCATOR(ROS2_Gem_DemoModule, AZ::SystemAllocator, 0);
- ROS2_Gem_DemoModule()
- : AZ::Module()
- {
- // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
- m_descriptors.insert(m_descriptors.end(), {
- ROS2_Gem_DemoSystemComponent::CreateDescriptor(),
- });
- }
- /**
- * Add required SystemComponents to the SystemEntity.
- */
- AZ::ComponentTypeList GetRequiredSystemComponents() const override
- {
- return AZ::ComponentTypeList{
- azrtti_typeid<ROS2_Gem_DemoSystemComponent>(),
- };
- }
- };
- }// namespace ROS2_Gem_Demo
- AZ_DECLARE_MODULE_CLASS(Gem_ROS2_Gem_Demo, ROS2_Gem_Demo::ROS2_Gem_DemoModule)
|