WhiteBoxEditorModule.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 "Components/EditorWhiteBoxColliderComponent.h"
  9. #include "EditorWhiteBoxComponent.h"
  10. #include "EditorWhiteBoxSystemComponent.h"
  11. #include "WhiteBoxEditorModule.h"
  12. namespace WhiteBox
  13. {
  14. AZ_CLASS_ALLOCATOR_IMPL(WhiteBoxEditorModule, AZ::SystemAllocator)
  15. WhiteBoxEditorModule::WhiteBoxEditorModule()
  16. : WhiteBoxModule()
  17. {
  18. // push results of [MyComponent]::CreateDescriptor() into m_descriptors here
  19. m_descriptors.insert(
  20. m_descriptors.end(),
  21. {
  22. EditorWhiteBoxSystemComponent::CreateDescriptor(),
  23. EditorWhiteBoxComponent::CreateDescriptor(),
  24. EditorWhiteBoxColliderComponent::CreateDescriptor(),
  25. });
  26. }
  27. WhiteBoxEditorModule::~WhiteBoxEditorModule() = default;
  28. AZ::ComponentTypeList WhiteBoxEditorModule::GetRequiredSystemComponents() const
  29. {
  30. // add required SystemComponents to the SystemEntity
  31. return AZ::ComponentTypeList{azrtti_typeid<EditorWhiteBoxSystemComponent>()};
  32. }
  33. } // namespace WhiteBox
  34. AZ_DECLARE_MODULE_CLASS(Gem_WhiteBoxEditor, WhiteBox::WhiteBoxEditorModule)