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]
73 lines
2.5 KiB
C++
73 lines
2.5 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/ObjectMacros.h"
|
|
#include "Textures/SlateIcon.h"
|
|
#include "K2Node.h"
|
|
#include "K2Node_AddPinInterface.h"
|
|
#include "EdGraph/EdGraphPin.h"
|
|
|
|
#include "K2Node_ExecutionSequence.generated.h"
|
|
|
|
class FBlueprintActionDatabaseRegistrar;
|
|
|
|
UCLASS(MinimalAPI, meta = (Keywords = "sequence"))
|
|
class UK2Node_ExecutionSequence : public UK2Node, public IK2Node_AddPinInterface
|
|
{
|
|
GENERATED_UCLASS_BODY()
|
|
|
|
//~ Begin UEdGraphNode Interface
|
|
virtual void AllocateDefaultPins() override;
|
|
virtual FText GetTooltipText() const override;
|
|
virtual FLinearColor GetNodeTitleColor() const override;
|
|
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
|
|
virtual FSlateIcon GetIconAndTint(FLinearColor& OutColor) const override;
|
|
//~ End UEdGraphNode Interface
|
|
|
|
//~ Begin UK2Node Interface
|
|
void ReallocatePinsDuringReconstruction(TArray<UEdGraphPin*>& OldPins) override;
|
|
virtual class FNodeHandlingFunctor* CreateNodeHandler(class FKismetCompilerContext& CompilerContext) const override;
|
|
virtual void GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRegistrar) const override;
|
|
virtual FText GetMenuCategory() const override;
|
|
virtual bool CanEverInsertExecutionPin() const override { return true; }
|
|
virtual bool CanEverRemoveExecutionPin() const override { return true; }
|
|
//~ End UK2Node Interface
|
|
|
|
// IK2Node_AddPinInterface interface
|
|
virtual void AddInputPin() override;
|
|
// End of IK2Node_AddPinInterface interface
|
|
|
|
//~ Begin K2Node_ExecutionSequence Interface
|
|
|
|
/** Gets a unique pin name, the next in the sequence */
|
|
FName GetUniquePinName();
|
|
|
|
/**
|
|
* Inserts a new execution pin, before the specified execution pin, into an execution node
|
|
*
|
|
* @param PinToInsertBefore The pin to insert a new pin before on the node
|
|
*/
|
|
BLUEPRINTGRAPH_API void InsertPinIntoExecutionNode(UEdGraphPin* PinToInsertBefore, EPinInsertPosition Position);
|
|
|
|
/**
|
|
* Removes the specified execution pin from an execution node
|
|
*
|
|
* @param TargetPin The pin to remove from the node
|
|
*/
|
|
BLUEPRINTGRAPH_API void RemovePinFromExecutionNode(UEdGraphPin* TargetPin);
|
|
|
|
/** Whether an execution pin can be removed from the node or not */
|
|
BLUEPRINTGRAPH_API bool CanRemoveExecutionPin() const;
|
|
|
|
// @todo document
|
|
BLUEPRINTGRAPH_API UEdGraphPin* GetThenPinGivenIndex(int32 Index);
|
|
|
|
private:
|
|
// Returns the exec output pin name for a given 0-based index
|
|
virtual FName GetPinNameGivenIndex(int32 Index) const;
|
|
};
|
|
|