|
@@ -10,6 +10,8 @@
|
|
|
#include <AzCore/Module/Module.h>
|
|
|
#include <AzCore/RTTI/RTTIMacros.h>
|
|
|
#include <AzCore/RTTI/TypeInfoSimple.h>
|
|
|
+#include <GeomNodes/GeomNodesTypeIds.h>
|
|
|
+#include <GeomNodes/Components/GeomNodesSystemComponent.h>
|
|
|
|
|
|
namespace GeomNodes
|
|
|
{
|
|
@@ -17,15 +19,25 @@ namespace GeomNodes
|
|
|
: public AZ::Module
|
|
|
{
|
|
|
public:
|
|
|
- AZ_TYPE_INFO_WITH_NAME_DECL(GeomNodesModuleInterface)
|
|
|
- AZ_RTTI_NO_TYPE_INFO_DECL()
|
|
|
- AZ_CLASS_ALLOCATOR_DECL
|
|
|
+ AZ_RTTI(GeomNodesModuleInterface, GeomNodesModuleInterfaceTypeId, AZ::Module);
|
|
|
+ AZ_CLASS_ALLOCATOR(GeomNodesModuleInterface, AZ::SystemAllocator);
|
|
|
|
|
|
- GeomNodesModuleInterface();
|
|
|
+ GeomNodesModuleInterface()
|
|
|
+ {
|
|
|
+ // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
|
|
|
+ // Add ALL components descriptors associated with this gem to m_descriptors.
|
|
|
+ // This will associate the AzTypeInfo information for the components with the the SerializeContext, BehaviorContext and EditContext.
|
|
|
+ // This happens through the [MyComponent]::Reflect() function.
|
|
|
+ m_descriptors.insert(m_descriptors.end(), {
|
|
|
+ GeomNodesSystemComponent::CreateDescriptor(),
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
- /**
|
|
|
- * Add required SystemComponents to the SystemEntity.
|
|
|
- */
|
|
|
- AZ::ComponentTypeList GetRequiredSystemComponents() const override;
|
|
|
+ AZ::ComponentTypeList GetRequiredSystemComponents() const
|
|
|
+ {
|
|
|
+ return AZ::ComponentTypeList{
|
|
|
+ azrtti_typeid<GeomNodesSystemComponent>(),
|
|
|
+ };
|
|
|
+ }
|
|
|
};
|
|
|
}// namespace GeomNodes
|