You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Fixed K2Node_FunctionEntry to support redirect [CL 2215234 by Lina Halper in Main branch]
59 lines
2.1 KiB
C++
59 lines
2.1 KiB
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
#include "K2Node_FunctionTerminator.h"
|
|
#include "K2Node_FunctionEntry.generated.h"
|
|
|
|
UCLASS(MinimalAPI)
|
|
class UK2Node_FunctionEntry : public UK2Node_FunctionTerminator
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
/** If specified, the function that is created for this entry point will have this name. Otherwise, it will have the function signature's name */
|
|
UPROPERTY()
|
|
FName CustomGeneratedFunctionName;
|
|
|
|
/** Any extra flags that the function may need */
|
|
UPROPERTY()
|
|
int32 ExtraFlags;
|
|
|
|
/** Function metadata */
|
|
UPROPERTY()
|
|
struct FKismetUserDeclaredFunctionMetadata MetaData;
|
|
|
|
/** Array of local variables to be added to generated function */
|
|
UPROPERTY()
|
|
TArray<struct FBPVariableDescription> LocalVariables;
|
|
|
|
// Begin UEdGraphNode interface
|
|
virtual void AllocateDefaultPins() override;
|
|
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
|
|
virtual bool CanUserDeleteNode() const override { return false; }
|
|
virtual bool IsDeprecated() const override;
|
|
virtual FString GetDeprecationMessage() const override;
|
|
// End UEdGraphNode interface
|
|
|
|
// Begin UK2Node interface
|
|
virtual bool DrawNodeAsEntry() const override { return true; }
|
|
virtual class FNodeHandlingFunctor* CreateNodeHandler(class FKismetCompilerContext& CompilerContext) const override;
|
|
virtual void GetRedirectPinNames(const UEdGraphPin& Pin, TArray<FString>& RedirectPinNames) const override;
|
|
// End UK2Node interface
|
|
|
|
// Begin UK2Node_EditablePinBase interface
|
|
virtual bool CanUseRefParams() const override { return true; }
|
|
// End UK2Node_EditablePinBase interface
|
|
|
|
// Begin K2Node_FunctionTerminator interface
|
|
virtual UEdGraphPin* CreatePinFromUserDefinition(const TSharedPtr<FUserPinInfo> NewPinInfo) override;
|
|
// End K2Node_FunctionTerminator interface
|
|
|
|
// Removes an output pin from the node
|
|
BLUEPRINTGRAPH_API void RemoveOutputPin(UEdGraphPin* PinToRemove);
|
|
|
|
// Returns pin for the automatically added WorldContext parameter (used only by BlueprintFunctionLibrary).
|
|
BLUEPRINTGRAPH_API UEdGraphPin* GetAutoWorldContextPin() const;
|
|
|
|
BLUEPRINTGRAPH_API void RemoveUnnecessaryAutoWorldContext();
|
|
};
|
|
|