2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-06-04 13:51:09 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "K2Node_DoOnceMultiInput.generated.h"
|
|
|
|
|
|
|
|
|
|
UCLASS(MinimalAPI)
|
|
|
|
|
class UK2Node_DoOnceMultiInput : public UK2Node
|
|
|
|
|
{
|
2015-03-17 05:38:32 -04:00
|
|
|
GENERATED_UCLASS_BODY()
|
2014-06-04 13:51:09 -04:00
|
|
|
|
|
|
|
|
/** The number of additional input pins to generate for this node (2 base pins are not included) */
|
|
|
|
|
UPROPERTY()
|
|
|
|
|
int32 NumAdditionalInputs;
|
|
|
|
|
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
|
2014-06-04 13:51:09 -04:00
|
|
|
|
|
|
|
|
/** Reference to the integer that contains */
|
|
|
|
|
UPROPERTY(transient)
|
|
|
|
|
class UK2Node_TemporaryVariable* DataNode;
|
|
|
|
|
|
2014-10-08 18:58:29 -04:00
|
|
|
void ReallocatePinsDuringReconstruction(TArray<UEdGraphPin*>&) override;
|
|
|
|
|
ERedirectType DoPinsMatchForReconstruction(const UEdGraphPin* NewPin, int32 NewPinIndex, const UEdGraphPin* OldPin, int32 OldPinIndex) const override;
|
|
|
|
|
|
2014-06-04 13:51:09 -04:00
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
const static int32 NumBaseInputs = 1;
|
|
|
|
|
|
|
|
|
|
static int32 GetMaxInputPinsNum();
|
2015-04-16 12:30:40 -04:00
|
|
|
static FText GetNameForPin(int32 PinIndex, bool In);
|
2014-06-04 13:51:09 -04:00
|
|
|
|
|
|
|
|
FEdGraphPinType GetInType() const;
|
|
|
|
|
FEdGraphPinType GetOutType() const;
|
|
|
|
|
|
|
|
|
|
void AddPinsInner(int32 AdditionalPinIndex);
|
|
|
|
|
bool CanAddPin() const;
|
|
|
|
|
bool CanRemovePin(const UEdGraphPin* Pin) const;
|
|
|
|
|
public:
|
|
|
|
|
BLUEPRINTGRAPH_API UEdGraphPin* FindOutPin() const;
|
|
|
|
|
BLUEPRINTGRAPH_API UEdGraphPin* FindSelfPin() const;
|
|
|
|
|
|
|
|
|
|
/** Get TRUE input type (self, etc.. are skipped) */
|
|
|
|
|
BLUEPRINTGRAPH_API UEdGraphPin* GetInputPin(int32 InputPinIndex);
|
|
|
|
|
BLUEPRINTGRAPH_API UEdGraphPin* GetOutputPin(int32 InputPinIndex);
|
|
|
|
|
|
|
|
|
|
BLUEPRINTGRAPH_API void AddInputPin();
|
|
|
|
|
BLUEPRINTGRAPH_API void RemoveInputPin(UEdGraphPin* Pin);
|
|
|
|
|
|
|
|
|
|
// UEdGraphNode interface
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual void AllocateDefaultPins() override;
|
2014-06-04 13:51:09 -04:00
|
|
|
// End of UEdGraphNode interface
|
|
|
|
|
|
|
|
|
|
// UK2Node interface
|
2014-06-13 06:14:46 -04:00
|
|
|
virtual void GetContextMenuActions(const FGraphNodeContextMenuBuilder& Context) const override;
|
|
|
|
|
virtual void ExpandNode(class FKismetCompilerContext& CompilerContext, UEdGraph* SourceGraph) override;
|
2014-08-23 20:16:29 -04:00
|
|
|
virtual void GetMenuActions(FBlueprintActionDatabaseRegistrar& ActionRegistrar) const override;
|
2014-07-14 13:29:38 -04:00
|
|
|
virtual FText GetMenuCategory() const override;
|
2014-06-04 13:51:09 -04:00
|
|
|
// End of UK2Node interface
|
2014-10-08 18:58:29 -04:00
|
|
|
};
|