Add MultiplayerGem Editor components for Ctrl+G support

This commit is contained in:
puvvadar
2021-04-14 16:20:45 -07:00
parent e8f6463db0
commit fa781fabc5
8 changed files with 374 additions and 1 deletions
@@ -15,6 +15,10 @@
#include <Source/MultiplayerSystemComponent.h>
#include <AzNetworking/Framework/NetworkingSystemComponent.h>
#ifdef MULTIPLAYER_EDITOR
#include <Source/Editor/MultiplayerEditorSystemComponent.h>
#endif
namespace Multiplayer
{
MultiplayerModule::MultiplayerModule()
@@ -23,6 +27,9 @@ namespace Multiplayer
m_descriptors.insert(m_descriptors.end(), {
AzNetworking::NetworkingSystemComponent::CreateDescriptor(),
MultiplayerSystemComponent::CreateDescriptor(),
#ifdef MULTIPLAYER_EDITOR
MultiplayerEditorSystemComponent::CreateDescriptor(),
#endif
});
}
@@ -32,8 +39,11 @@ namespace Multiplayer
{
azrtti_typeid<AzNetworking::NetworkingSystemComponent>(),
azrtti_typeid<MultiplayerSystemComponent>(),
#ifdef MULTIPLAYER_EDITOR
azrtti_typeid<MultiplayerEditorSystemComponent>(),
#endif
};
}
}
AZ_DECLARE_MODULE_CLASS(Gem_Multiplayer2, Multiplayer::MultiplayerModule);
AZ_DECLARE_MODULE_CLASS(Gem_Multiplayer, Multiplayer::MultiplayerModule);