Add MultiplayerEditorGem to clean up logic plus misc. cleanup

This commit is contained in:
puvvadar
2021-04-26 17:28:49 -07:00
parent 8d84737743
commit 925928bb20
6 changed files with 91 additions and 16 deletions
@@ -19,10 +19,6 @@
#include <Source/Pipeline/NetworkSpawnableHolderComponent.h>
#include <AzNetworking/Framework/NetworkingSystemComponent.h>
#ifdef MULTIPLAYER_EDITOR
#include <Source/Editor/MultiplayerEditorSystemComponent.h>
#endif
namespace Multiplayer
{
MultiplayerModule::MultiplayerModule()
@@ -32,9 +28,6 @@ namespace Multiplayer
AzNetworking::NetworkingSystemComponent::CreateDescriptor(),
MultiplayerSystemComponent::CreateDescriptor(),
NetBindComponent::CreateDescriptor(),
#ifdef MULTIPLAYER_EDITOR
MultiplayerEditorSystemComponent::CreateDescriptor(),
#endif
NetBindMarkerComponent::CreateDescriptor(),
NetworkSpawnableHolderComponent::CreateDescriptor(),
});
@@ -48,11 +41,10 @@ namespace Multiplayer
{
azrtti_typeid<AzNetworking::NetworkingSystemComponent>(),
azrtti_typeid<MultiplayerSystemComponent>(),
#ifdef MULTIPLAYER_EDITOR
azrtti_typeid<MultiplayerEditorSystemComponent>(),
#endif
};
}
}
#if !defined(MULTIPLAYER_EDITOR)
AZ_DECLARE_MODULE_CLASS(Gem_Multiplayer, Multiplayer::MultiplayerModule);
#endif