AWSGameLiftClientModule.cpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  3. * its licensors.
  4. *
  5. * For complete copyright and license terms please see the LICENSE at the root of this
  6. * distribution (the "License"). All use of this software is governed by the License,
  7. * or, if provided, by the license below or the license accompanying this file. Do not
  8. * remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  9. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. *
  11. */
  12. #include <AzCore/Memory/SystemAllocator.h>
  13. #include <AzCore/Module/Module.h>
  14. #include <AWSGameLiftClientSystemComponent.h>
  15. namespace AWSGameLift
  16. {
  17. //! Provide the entry point for the gem and register the system component.
  18. class AWSGameLiftClientModule
  19. : public AZ::Module
  20. {
  21. public:
  22. AZ_RTTI(AWSGameLiftClientModule, "{7b920f3e-2b23-482e-a1b6-16bd278d126c}", AZ::Module);
  23. AZ_CLASS_ALLOCATOR(AWSGameLiftClientModule, AZ::SystemAllocator, 0);
  24. AWSGameLiftClientModule()
  25. : AZ::Module()
  26. {
  27. // Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
  28. m_descriptors.insert(m_descriptors.end(), {
  29. AWSGameLiftClientSystemComponent::CreateDescriptor(),
  30. });
  31. }
  32. /**
  33. * Add required SystemComponents to the SystemEntity.
  34. */
  35. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  36. {
  37. return AZ::ComponentTypeList {
  38. azrtti_typeid<AWSGameLiftClientSystemComponent>(),
  39. };
  40. }
  41. };
  42. }// namespace AWSGameLift
  43. AZ_DECLARE_MODULE_CLASS(Gem_AWSGameLift_Client, AWSGameLift::AWSGameLiftClientModule)