// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #include "K2Node_StructOperation.h" #include "EdGraph/EdGraphNodeUtils.h" // for FNodeTextCache #include "K2Node_StructMemberSet.generated.h" // Imperative kismet node that sets one or more member variables of a struct UCLASS(MinimalAPI) class UK2Node_StructMemberSet : public UK2Node_StructOperation { GENERATED_UCLASS_BODY() UPROPERTY(EditAnywhere, Category=PinOptions, EditFixedSize) TArray ShowPinForProperties; // UObject interface virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) override; // End of UObject interface // UEdGraphNode interface virtual void AllocateDefaultPins() override; virtual FText GetTooltipText() const override; virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override; // End of UEdGraphNode interface // UK2Node interface virtual bool IsNodePure() const override { return false; } virtual bool NodeCausesStructuralBlueprintChange() const override { return true; } virtual ERedirectType DoPinsMatchForReconstruction(const UEdGraphPin* NewPin, int32 NewPinIndex, const UEdGraphPin* OldPin, int32 OldPinIndex) const override; virtual class FNodeHandlingFunctor* CreateNodeHandler(class FKismetCompilerContext& CompilerContext) const override; // End of UK2Node interface private: /** Constructing FText strings can be costly, so we cache the node's title/tooltip */ FNodeTextCache CachedTooltip; FNodeTextCache CachedNodeTitle; };