Removes DebugEventHandler from Gems/EMotionFX

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-12-22 16:33:45 -08:00
parent a857ad53b6
commit 87f32e0659
4 changed files with 0 additions and 141 deletions
@@ -16,7 +16,6 @@
#include "AttributesWindow.h"
#include "NodeGroupWindow.h"
#include "BlendTreeVisualNode.h"
#include "DebugEventHandler.h"
#include "StateGraphNode.h"
#include "ParameterWindow.h"
#include "GraphNodeFactory.h"
@@ -1,92 +0,0 @@
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
// include the required headers
#include "DebugEventHandler.h"
#include <MCore/Source/LogManager.h>
namespace EMStudio
{
// constructor
AnimGraphInstanceDebugEventHandler::AnimGraphInstanceDebugEventHandler()
{
}
// destructor
AnimGraphInstanceDebugEventHandler::~AnimGraphInstanceDebugEventHandler()
{
}
void AnimGraphInstanceDebugEventHandler::OnStateEnter(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphNode* state)
{
MCORE_UNUSED(animGraphInstance);
MCore::LogError("Entered '%s'", state->GetName());
}
void AnimGraphInstanceDebugEventHandler::OnStateEntering(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphNode* state)
{
MCORE_UNUSED(animGraphInstance);
if (state == nullptr)
{
return;
}
MCore::LogError("Entering '%s'", state->GetName());
}
void AnimGraphInstanceDebugEventHandler::OnStateExit(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphNode* state)
{
MCORE_UNUSED(animGraphInstance);
if (state == nullptr)
{
return;
}
MCore::LogError("Exit '%s'", state->GetName());
}
void AnimGraphInstanceDebugEventHandler::OnStateEnd(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphNode* state)
{
MCORE_UNUSED(animGraphInstance);
if (state == nullptr)
{
return;
}
MCore::LogError("End '%s'", state->GetName());
}
void AnimGraphInstanceDebugEventHandler::OnStartTransition(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphStateTransition* transition)
{
if (transition == nullptr)
{
return;
}
MCore::LogError("Start transition from '%s' to '%s'", transition->GetSourceNode(animGraphInstance)->GetName(), transition->GetTargetNode()->GetName());
}
void AnimGraphInstanceDebugEventHandler::OnEndTransition(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphStateTransition* transition)
{
if (transition == nullptr)
{
return;
}
MCore::LogError("End transition from '%s' to '%s'", transition->GetSourceNode(animGraphInstance)->GetName(), transition->GetTargetNode()->GetName());
}
} // namespace EMStudio
@@ -1,46 +0,0 @@
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
// include MCore
#if !defined(Q_MOC_RUN)
#include "../StandardPluginsConfig.h"
#include <MCore/Source/StandardHeaders.h>
#include <EMotionFX/Source/AnimGraphInstance.h>
#include <EMotionFX/Source/AnimGraphNode.h>
#include <EMotionFX/Source/EventHandler.h>
#include <EMotionFX/Source/AnimGraphStateTransition.h>
#include <EMotionFX/CommandSystem/Source/SelectionCommands.h>
#include "../StandardPluginsConfig.h"
#endif
namespace EMStudio
{
class AnimGraphInstanceDebugEventHandler
: public EMotionFX::AnimGraphInstanceEventHandler
{
MCORE_MEMORYOBJECTCATEGORY(AnimGraphInstanceDebugEventHandler, MCore::MCORE_DEFAULT_ALIGNMENT, MEMCATEGORY_STANDARDPLUGINS_ANIMGRAPH)
public:
AnimGraphInstanceDebugEventHandler();
virtual ~AnimGraphInstanceDebugEventHandler();
void OnStateEnter(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphNode* state);
void OnStateEntering(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphNode* state);
void OnStateExit(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphNode* state);
void OnStateEnd(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphNode* state);
void OnStartTransition(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphStateTransition* transition);
void OnEndTransition(EMotionFX::AnimGraphInstance* animGraphInstance, EMotionFX::AnimGraphStateTransition* transition);
private:
};
} // namespace EMStudio
@@ -58,8 +58,6 @@ set(FILES
Source/AnimGraph/AnimGraphPlugin.h
Source/AnimGraph/AnimGraphPluginCallbacks.cpp
Source/AnimGraph/ContextMenu.cpp
Source/AnimGraph/DebugEventHandler.cpp
Source/AnimGraph/DebugEventHandler.h
Source/AnimGraph/GameController.cpp
Source/AnimGraph/GameController.h
Source/AnimGraph/GameControllerWindow.cpp