You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
25 lines
790 B
C++
25 lines
790 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::GetCustomEventName(UAnimGraphNode_Base* InNode) const
|
||
|
|
{
|
||
|
|
return CustomEventNames.FindChecked(InNode);
|
||
|
|
}
|