-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathAtomTutorialsModuleInterface.h
More file actions
36 lines (32 loc) · 1.33 KB
/
AtomTutorialsModuleInterface.h
File metadata and controls
36 lines (32 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include <AzCore/Memory/SystemAllocator.h>
#include <AzCore/Module/Module.h>
#include <Clients/AtomTutorialsSystemComponent.h>
namespace AtomTutorials
{
class AtomTutorialsModuleInterface
: public AZ::Module
{
public:
AZ_RTTI(AtomTutorialsModuleInterface, "{553B66F8-E05B-450B-81D2-3D5139B60B8A}", AZ::Module);
AZ_CLASS_ALLOCATOR(AtomTutorialsModuleInterface, AZ::SystemAllocator, 0);
AtomTutorialsModuleInterface()
{
// 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(), {
AtomTutorialsSystemComponent::CreateDescriptor(),
});
}
/**
* Add required SystemComponents to the SystemEntity.
*/
AZ::ComponentTypeList GetRequiredSystemComponents() const override
{
return AZ::ComponentTypeList{
azrtti_typeid<AtomTutorialsSystemComponent>(),
};
}
};
}// namespace AtomTutorials