Files
UnrealEngineUWP/Engine/Source/Editor/BlueprintGraph/Classes/K2Node_AssignmentStatement.h
dave jones2 64ae24ec12 Removed extraneous GetSelfPin implementations.
Since GetThenPin was added to UK2Node in 5.x, derived classes don't need to provide their own implementations. These were largely identical to the one in UK2Node. Additionally, overriding non-virtual functions can be error prone if there's an expectation of polymorphic behavior.

#rb dan.oconnor, jodon.karlik
#rnx
[FYI] George.Rolfe

[CL 35782464 by dave jones2 in ue5-main branch]
2024-08-23 16:46:50 -04:00

57 lines
1.8 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "EdGraph/EdGraph.h"
#include "EdGraph/EdGraphNode.h"
#include "HAL/Platform.h"
#include "Internationalization/Text.h"
#include "K2Node.h"
#include "KismetCompilerMisc.h"
#include "UObject/ObjectMacros.h"
#include "UObject/UObjectGlobals.h"
#include "K2Node_AssignmentStatement.generated.h"
class FBlueprintActionDatabaseRegistrar;
class FName;
class UEdGraph;
class UEdGraphPin;
class UObject;
UCLASS(MinimalAPI)
class UK2Node_AssignmentStatement : public UK2Node
{
GENERATED_UCLASS_BODY()
// Name of the Variable pin for this node
static FName VariablePinName;
// Name of the Value pin for this node
static FName ValuePinName;
//~ Begin UEdGraphNode Interface
virtual void AllocateDefaultPins() override;
virtual FText GetTooltipText() const override;
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
virtual bool IsCompatibleWithGraph(const UEdGraph* TargetGraph) const override;
virtual bool CanPasteHere(const UEdGraph* TargetGraph) const override;
//~ End UEdGraphNode Interface
//~ Begin UK2Node Interface
virtual void PostReconstructNode() override;
virtual void NotifyPinConnectionListChanged(UEdGraphPin* Pin) override;
virtual class FNodeHandlingFunctor* CreateNodeHandler(class FKismetCompilerContext& CompilerContext) const override;
virtual void GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRegistrar) const override;
virtual FText GetMenuCategory() const override;
virtual int32 GetNodeRefreshPriority() const override { return EBaseNodeRefreshPriority::Low_UsesDependentWildcard; }
//~ End UK2Node Interface
/** Get the Variable input pin */
BLUEPRINTGRAPH_API UEdGraphPin* GetVariablePin() const;
/** Get the Value input pin */
BLUEPRINTGRAPH_API UEdGraphPin* GetValuePin() const;
};