3
0

MultiplayerDebugModule.cpp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 <Source/Debug/MultiplayerDebugModule.h>
  9. #include <Source/Debug/MultiplayerDebugSystemComponent.h>
  10. #include <Source/Debug/MultiplayerConnectionViewportMessageSystemComponent.h>
  11. namespace Multiplayer
  12. {
  13. MultiplayerDebugModule::MultiplayerDebugModule()
  14. : AZ::Module()
  15. {
  16. m_descriptors.insert(m_descriptors.end(), {
  17. MultiplayerDebugSystemComponent::CreateDescriptor(),
  18. MultiplayerConnectionViewportMessageSystemComponent::CreateDescriptor()
  19. });
  20. }
  21. AZ::ComponentTypeList MultiplayerDebugModule::GetRequiredSystemComponents() const
  22. {
  23. return AZ::ComponentTypeList
  24. {
  25. azrtti_typeid<MultiplayerDebugSystemComponent>(),
  26. azrtti_typeid<MultiplayerConnectionViewportMessageSystemComponent>()
  27. };
  28. }
  29. }
  30. #if defined(AZ_MONOLITHIC_BUILD)
  31. #if defined(O3DE_GEM_NAME)
  32. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Debug_Client), Multiplayer::MultiplayerDebugModule)
  33. #else
  34. AZ_DECLARE_MODULE_CLASS(Gem_Multiplayer_Debug_Client, Multiplayer::MultiplayerDebugModule)
  35. #endif
  36. #endif
  37. #if defined(O3DE_GEM_NAME)
  38. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Debug), Multiplayer::MultiplayerDebugModule)
  39. #else
  40. AZ_DECLARE_MODULE_CLASS(Gem_Multiplayer_Debug, Multiplayer::MultiplayerDebugModule)
  41. #endif