You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Change summary: - Moved base definition of UK2Node::HasExternalDependencies() up one level to UEdGraphNode (to avoid blind casts in a context where we may not necessarily have a UK2Node subtype). - Updated subtype headers that override HasExternalDependencies() to relocate the declaration into the class declaration's 'UEdGraphNode overrides' section (for clarity). - Reverted previous UBlueprintNodeSpawner::ImportTarget solution in favor of using node dependencies; this allows auto-import actions to scale more easily to all existing node subtypes and avoids data duplication. - Modified SBlueprintActionMenu::OnActionSelected() to utilize the new method for determining which namespace(s) to auto-import after executing a node spawner action in response to a context menu item selection (UE-146803). - Reverted FBlueprintNamespaceUtilities::GetPropertyValueNamespaces() back to its original 5.0 signature so that it uses a TSet<FString> for the output rather than a TArray<FString>; this fits in better with input to other APIs. - Renamed FBlueprintEditor::FImportNamespaceParameters to FImportNamespaceExParameters (for clarity). - Changed the 'FBlueprintEditor::FImportNamespaceParameters::AdditionalNamespaces' member to a TSet<FString> containing *all* namespaces to import rather than limiting to only additional ones. - Reverted FBlueprintEditor::ImportNamespace() back to its original 5.0 signature and added/implemented FBlueprintEditor::ImportNamespaceEx() as the "extended" version that allows for batched imports and future customizations. - Revised existing FBlueprintEditor::ImportNamespace() call sites to utilize and/or conform to the extended ImportNamespaceEx() API where appropriate. #jira UE-146803 #rb Benjamin.Fox #preflight 623cf3a433709ff50128e8d4 [CL 19505118 by Phillip Kavan in ue5-main branch]
58 lines
2.2 KiB
C++
58 lines
2.2 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "Engine/MemberReference.h"
|
|
#include "Templates/SubclassOf.h"
|
|
#include "K2Node_EditablePinBase.h"
|
|
#include "K2Node_FunctionTerminator.generated.h"
|
|
|
|
UCLASS(abstract, MinimalAPI)
|
|
class UK2Node_FunctionTerminator : public UK2Node_EditablePinBase
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
/** Reference to the function signature. This is only resolvable by default if this is an inherited function */
|
|
UPROPERTY()
|
|
FMemberReference FunctionReference;
|
|
|
|
//~ Begin UObject Interface
|
|
virtual void Serialize(FArchive& Ar) override;
|
|
//~ End UObject Interface
|
|
|
|
//~ Begin UEdGraphNode Interface
|
|
virtual FLinearColor GetNodeTitleColor() const override;
|
|
virtual FName CreateUniquePinName(FName SourcePinName) const override;
|
|
virtual void ValidateNodeDuringCompilation(class FCompilerResultsLog& MessageLog) const override;
|
|
virtual bool HasExternalDependencies(TArray<class UStruct*>* OptionalOutput) const override;
|
|
//~ End UEdGraphNode Interface
|
|
|
|
//~ Begin UK2Node Interface
|
|
virtual bool NodeCausesStructuralBlueprintChange() const override { return true; }
|
|
virtual void PostPasteNode() override;
|
|
//~ End UK2Node Interface
|
|
|
|
//~ Begin UK2Node_EditablePinBase Interface
|
|
virtual bool CanCreateUserDefinedPin(const FEdGraphPinType& InPinType, EEdGraphPinDirection InDesiredDirection, FText& OutErrorMessage) override;
|
|
//~ End UK2Node_EditablePinBase Interface
|
|
|
|
/** Promotes the node from being a part of an interface override to a full function that allows for parameter and result pin additions */
|
|
BLUEPRINTGRAPH_API virtual void PromoteFromInterfaceOverride(bool bIsPrimaryTerminator = true);
|
|
|
|
/** Returns the UFunction that this node actually represents, this will work for both inherited and newly created functions */
|
|
BLUEPRINTGRAPH_API UFunction* FindSignatureFunction() const;
|
|
|
|
private:
|
|
/** (DEPRECATED) Function signature class. Replaced by the 'FunctionReference' property. */
|
|
UPROPERTY()
|
|
TSubclassOf<class UObject> SignatureClass_DEPRECATED;
|
|
|
|
/** (DEPRECATED) Function signature name. Replaced by the 'FunctionReference' property. */
|
|
UPROPERTY()
|
|
FName SignatureName_DEPRECATED;
|
|
};
|
|
|