3
0

WhiteBoxModule.cpp 1.3 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 "Components/WhiteBoxColliderComponent.h"
  9. #include "WhiteBoxComponent.h"
  10. #include "WhiteBoxModule.h"
  11. #include "WhiteBoxSystemComponent.h"
  12. namespace WhiteBox
  13. {
  14. AZ_CLASS_ALLOCATOR_IMPL(WhiteBoxModule, AZ::SystemAllocator)
  15. WhiteBoxModule::WhiteBoxModule()
  16. : CryHooksModule()
  17. {
  18. // push results of [MyComponent]::CreateDescriptor() into m_descriptors here
  19. m_descriptors.insert(
  20. m_descriptors.end(),
  21. {
  22. WhiteBoxSystemComponent::CreateDescriptor(),
  23. WhiteBoxColliderComponent::CreateDescriptor(),
  24. WhiteBoxComponent::CreateDescriptor(),
  25. });
  26. }
  27. WhiteBoxModule::~WhiteBoxModule()
  28. {
  29. }
  30. AZ::ComponentTypeList WhiteBoxModule::GetRequiredSystemComponents() const
  31. {
  32. // add required SystemComponents to the SystemEntity
  33. return AZ::ComponentTypeList{azrtti_typeid<WhiteBoxSystemComponent>()};
  34. }
  35. } // namespace WhiteBox
  36. #if !defined(WHITE_BOX_EDITOR)
  37. AZ_DECLARE_MODULE_CLASS(Gem_WhiteBox, WhiteBox::WhiteBoxModule)
  38. #endif // !defined(WHITE_BOX_EDITOR)