You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rnx #rb none #ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904 #ROBOMERGE-BOT: (v613-10869866) [CL 10870586 by ryan durand in Main branch]
32 lines
1.0 KiB
C++
32 lines
1.0 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "EventEntryHandler.h"
|
|
#include "K2Node_Event.h"
|
|
|
|
#include "KismetCompiledFunctionContext.h"
|
|
|
|
void FKCHandler_EventEntry::RegisterNet(FKismetFunctionContext& Context, UEdGraphPin* Net)
|
|
{
|
|
const bool bIsDelegateOutput = (NULL != Net) && (UK2Node_Event::DelegateOutputName == Net->PinName);
|
|
if(!bIsDelegateOutput)
|
|
{
|
|
if (!Context.IsEventGraph())
|
|
{
|
|
Context.MessageLog.Error(TEXT("Event node @@ registers net @@ in a non-event graph."), Net ? Net->GetOwningNodeUnchecked() : nullptr, Net);
|
|
return;
|
|
}
|
|
|
|
// This net is an event parameter; push to be a private class member variable
|
|
FBPTerminal* Term = Context.CreateLocalTerminal(ETerminalSpecification::TS_ForcedShared);
|
|
Term->CopyFromPin(Net, Context.NetNameMap->MakeValidName(Net));
|
|
|
|
Context.NetMap.Add(Net, Term);
|
|
}
|
|
}
|
|
|
|
void FKCHandler_EventEntry::Compile(FKismetFunctionContext& Context, UEdGraphNode* Node)
|
|
{
|
|
// Generate the output impulse from this node
|
|
FBlueprintCompiledStatement& Statement = GenerateSimpleThenGoto(Context, *Node);
|
|
}
|