@@ -11,32 +11,29 @@
|
||||
|
||||
#include <EMotionFX/Tools/EMotionStudio/EMStudioSDK/Source/EMStudioManager.h>
|
||||
|
||||
namespace AZ
|
||||
namespace AZ::EMotionFXAtom
|
||||
{
|
||||
namespace EMotionFXAtom
|
||||
void EditorSystemComponent::Reflect(ReflectContext* context)
|
||||
{
|
||||
void EditorSystemComponent::Reflect(ReflectContext* context)
|
||||
if (SerializeContext* serialize = azrtti_cast<SerializeContext*>(context))
|
||||
{
|
||||
if (SerializeContext* serialize = azrtti_cast<SerializeContext*>(context))
|
||||
{
|
||||
serialize->Class<EditorSystemComponent, Component>()->Version(0);
|
||||
}
|
||||
}
|
||||
|
||||
void EditorSystemComponent::Activate()
|
||||
{
|
||||
EMotionFX::Integration::SystemNotificationBus::Handler::BusConnect();
|
||||
}
|
||||
|
||||
void EditorSystemComponent::Deactivate()
|
||||
{
|
||||
EMotionFX::Integration::SystemNotificationBus::Handler::BusDisconnect();
|
||||
}
|
||||
|
||||
void EditorSystemComponent::OnRegisterPlugin()
|
||||
{
|
||||
EMStudio::PluginManager* pluginManager = EMStudio::EMStudioManager::GetInstance()->GetPluginManager();
|
||||
pluginManager->RegisterPlugin(new EMStudio::AtomRenderPlugin());
|
||||
serialize->Class<EditorSystemComponent, Component>()->Version(0);
|
||||
}
|
||||
}
|
||||
} // namespace AZ
|
||||
|
||||
void EditorSystemComponent::Activate()
|
||||
{
|
||||
EMotionFX::Integration::SystemNotificationBus::Handler::BusConnect();
|
||||
}
|
||||
|
||||
void EditorSystemComponent::Deactivate()
|
||||
{
|
||||
EMotionFX::Integration::SystemNotificationBus::Handler::BusDisconnect();
|
||||
}
|
||||
|
||||
void EditorSystemComponent::OnRegisterPlugin()
|
||||
{
|
||||
EMStudio::PluginManager* pluginManager = EMStudio::EMStudioManager::GetInstance()->GetPluginManager();
|
||||
pluginManager->RegisterPlugin(new EMStudio::AtomRenderPlugin());
|
||||
}
|
||||
} // namespace AZ::EMotionFXAtom
|
||||
|
||||
@@ -10,26 +10,23 @@
|
||||
#include <AzCore/Component/Component.h>
|
||||
#include <Integration/AnimationBus.h>
|
||||
|
||||
namespace AZ
|
||||
namespace AZ::EMotionFXAtom
|
||||
{
|
||||
namespace EMotionFXAtom
|
||||
class EditorSystemComponent
|
||||
: public Component
|
||||
, private EMotionFX::Integration::SystemNotificationBus::Handler
|
||||
{
|
||||
class EditorSystemComponent
|
||||
: public Component
|
||||
, private EMotionFX::Integration::SystemNotificationBus::Handler
|
||||
{
|
||||
public:
|
||||
AZ_COMPONENT(EditorSystemComponent, "{1FAEC046-255D-4664-8F12-D16503C34431}");
|
||||
public:
|
||||
AZ_COMPONENT(EditorSystemComponent, "{1FAEC046-255D-4664-8F12-D16503C34431}");
|
||||
|
||||
static void Reflect(ReflectContext* context);
|
||||
static void Reflect(ReflectContext* context);
|
||||
|
||||
protected:
|
||||
// AZ::Component
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
protected:
|
||||
// AZ::Component
|
||||
void Activate() override;
|
||||
void Deactivate() override;
|
||||
|
||||
// SystemNotificationBus::OnRegisterPlugin
|
||||
void OnRegisterPlugin() override;
|
||||
};
|
||||
} // namespace EMotionFXAtom
|
||||
} // namespace AZ
|
||||
// SystemNotificationBus::OnRegisterPlugin
|
||||
void OnRegisterPlugin() override;
|
||||
};
|
||||
} // namespace AZ::EMotionFXAtom
|
||||
|
||||
Reference in New Issue
Block a user