29 lines
857 B
C++
29 lines
857 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "AnimBlueprintExtension_CallFunction.h"
|
|
#include "AnimGraphNode_Base.h"
|
|
|
|
void UAnimBlueprintExtension_CallFunction::HandleStartCompilingClass(const UClass* InClass, IAnimBlueprintCompilationBracketContext& InCompilationContext, IAnimBlueprintGeneratedClassCompiledData& OutCompiledData)
|
|
{
|
|
Counter = 0;
|
|
CustomEventNames.Empty();
|
|
}
|
|
|
|
FName UAnimBlueprintExtension_CallFunction::AddCustomEventName(UAnimGraphNode_Base* InNode)
|
|
{
|
|
static FName BaseName(TEXT("AnimNode_CallFunction_EventStub"));
|
|
FName Name(BaseName, Counter++);
|
|
CustomEventNames.Add(InNode, Name);
|
|
|
|
return Name;
|
|
}
|
|
|
|
FName UAnimBlueprintExtension_CallFunction::FindCustomEventName(UAnimGraphNode_Base* InNode) const
|
|
{
|
|
if(const FName* ExistingName = CustomEventNames.Find(InNode))
|
|
{
|
|
return *ExistingName;
|
|
}
|
|
return NAME_None;
|
|
}
|